mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
Add a small patch to pkg to fix NULL check in pkg_is_config_file().
This helps pkgbase users with recent updates. Approved by: bapt
This commit is contained in:
parent
34c35b0efb
commit
8a3ef66b51
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477662
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= pkg
|
||||
DISTVERSION= 1.10.5
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
_PKG_VERSION= ${DISTVERSION}
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= \
|
||||
|
13
ports-mgmt/pkg/files/patch-1702
Normal file
13
ports-mgmt/pkg/files/patch-1702
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/libpkg/pkg.c b/libpkg/pkg.c
|
||||
index 0c472b39..b4ee9ec3 100644
|
||||
--- libpkg/pkg.c
|
||||
+++ libpkg/pkg.c
|
||||
@@ -1668,7 +1668,7 @@ pkg_is_config_file(struct pkg *p, const char *path,
|
||||
return (false);
|
||||
|
||||
kh_find(pkg_config_files, p->config_files, path, *cfile);
|
||||
- if (cfile == NULL) {
|
||||
+ if (*cfile == NULL) {
|
||||
*file = NULL;
|
||||
return (false);
|
||||
}
|
Loading…
Reference in New Issue
Block a user