diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
| commit | 8e8120eabdd28020aa69c7a60505cce2edd20adc (patch) | |
| tree | 061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch | |
| parent | c16790af2c9b4cbc38e565d4311252193ff85484 (diff) | |
| download | baldeagleos-repo-21.1.2.tar.gz baldeagleos-repo-21.1.2.tar.xz baldeagleos-repo-21.1.2.zip | |
Updating liguros repo21.1.2
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; |
