FreeBSD Bugzilla – Attachment 11940 Details for
Bug 23300
make assumes readdir returns '.' and '..' for the first two calls.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1008 bytes, created by
Jim.Pirzyk
on 2000-12-05 19:20:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jim.Pirzyk
Created:
2000-12-05 19:20:02 UTC
Size:
1008 bytes
patch
obsolete
>*** ./usr.bin/make/dir.c.orig Tue Dec 5 10:54:57 2000 >--- ./usr.bin/make/dir.c Tue Dec 5 11:05:40 2000 >*************** >*** 1060,1067 **** >--- 1060,1069 ---- > /* > * Skip the first two entries -- these will *always* be . and .. > */ >+ /* > (void)readdir(d); > (void)readdir(d); >+ */ > > while ((dp = readdir (d)) != (struct dirent *) NULL) { > #if defined(sun) && defined(d_ino) /* d_ino is a sunos4 #define for d_fileno */ >*************** >*** 1074,1079 **** >--- 1076,1093 ---- > continue; > } > #endif /* sun && d_ino */ >+ >+ /* >+ * Skip the '.' and '..' entries, XFS over NFS filesystems >+ * since SGI does not guarentee that '.' and '..' are the >+ * first two entries returned from readdir(). >+ */ >+ if (dp->d_name[0] == '.' && >+ (dp->d_name[1] == NULL || >+ (dp->d_name[1] == '.' && dp->d_name[2] == NULL))) { >+ continue; >+ } >+ > (void)Hash_CreateEntry(&p->files, dp->d_name, (Boolean *)NULL); > } > (void) closedir (d);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23300
: 11940