diff options
Diffstat (limited to 'dev-build/pmake/files/pmake-1.98-skipdots.patch')
-rw-r--r-- | dev-build/pmake/files/pmake-1.98-skipdots.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-build/pmake/files/pmake-1.98-skipdots.patch b/dev-build/pmake/files/pmake-1.98-skipdots.patch new file mode 100644 index 000000000000..6783a9799919 --- /dev/null +++ b/dev-build/pmake/files/pmake-1.98-skipdots.patch @@ -0,0 +1,12 @@ +diff -urN pmake-2.0.orig/dir.c pmake-2.0/dir.c +--- pmake-2.0.orig/dir.c 2005-02-08 09:26:28.932978574 -0500 ++++ pmake-2.0/dir.c 2005-02-08 09:36:18.208704201 -0500 +@@ -1528,6 +1528,8 @@ + Hash_InitTable (&p->files, -1); + + while ((dp = readdir (d)) != (struct dirent *) NULL) { ++ if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) ++ continue; + #if defined(sun) && defined(d_ino) /* d_ino is a sunos4 #define for d_fileno */ + /* + * The sun directory library doesn't check for a 0 inode |