diff options
author | 2004-04-05 04:20:55 +0000 | |
---|---|---|
committer | 2004-04-05 04:20:55 +0000 | |
commit | ae416c00f7761b031c3a685f1702ed23c2ca41d3 (patch) | |
tree | 82bc94f2807a4110efda6fd9b1baaa0a0f9532e7 /sys-devel/pmake/files | |
parent | Phoenix down on 3.2-r2 to fix clean up mistake. :( (Manifest recommit) (diff) | |
download | gentoo-2-ae416c00f7761b031c3a685f1702ed23c2ca41d3.tar.gz gentoo-2-ae416c00f7761b031c3a685f1702ed23c2ca41d3.tar.bz2 gentoo-2-ae416c00f7761b031c3a685f1702ed23c2ca41d3.zip |
Don't assume that . and .. are the first two entries returned by readdir. Thanks to Bob Miller in bug 45998 for the patch
Diffstat (limited to 'sys-devel/pmake/files')
-rw-r--r-- | sys-devel/pmake/files/digest-pmake-1.45-r4 | 1 | ||||
-rw-r--r-- | sys-devel/pmake/files/skipdots.patch | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sys-devel/pmake/files/digest-pmake-1.45-r4 b/sys-devel/pmake/files/digest-pmake-1.45-r4 new file mode 100644 index 000000000000..110fde3e22d0 --- /dev/null +++ b/sys-devel/pmake/files/digest-pmake-1.45-r4 @@ -0,0 +1 @@ +MD5 c0f21ad413abbb2fc76ec0d4d426578f pmake_1.45-11.tar.gz 252673 diff --git a/sys-devel/pmake/files/skipdots.patch b/sys-devel/pmake/files/skipdots.patch new file mode 100644 index 000000000000..0bf81a9eeb7e --- /dev/null +++ b/sys-devel/pmake/files/skipdots.patch @@ -0,0 +1,22 @@ +--- pmake-1.45.orig/dir.c 1997-09-28 04:46:39.000000000 -0700 ++++ pmake-1.45/dir.c 2004-03-28 07:03:27.000000000 -0800 +@@ -1170,13 +1170,13 @@ + p->refCount = 1; + Hash_InitTable (&p->files, -1); + +- /* +- * Skip the first two entries -- these will *always* be . and .. +- */ +- (void)readdir(d); +- (void)readdir(d); +- + while ((dp = readdir (d)) != (struct dirent *) NULL) { ++ /* ++ * Skip "." and ".." ++ */ ++ 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 |