You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/pkgconf/files/pkgconf-1.7.3-darwin9.patch

25 lines
517 B

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;