diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch')
-rw-r--r-- | dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch b/dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch new file mode 100644 index 000000000000..f41de43b97c5 --- /dev/null +++ b/dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch @@ -0,0 +1,24 @@ +darwin9 does not malloc on NULL resolved_path + +https://github.com/pkgconf/pkgconf/pull/208 + +--- a/libpkgconf/path.c ++++ b/libpkgconf/path.c +@@ -92,15 +92,11 @@ + return; + if (S_ISLNK(st.st_mode)) + { +- char *linkdest = realpath(path, NULL); ++ char pathbuf[PATH_MAX]; ++ char *linkdest = realpath(path, pathbuf); + + if (linkdest != NULL && stat(linkdest, &st) == -1) +- { +- free(linkdest); + return; +- } +- +- free(linkdest); + } + if (path_list_contains_entry(path, dirlist, &st)) + return; |