summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-11-06 15:09:22 +0000
committergrant <grant@pkgsrc.org>2004-11-06 15:09:22 +0000
commitd13c42fa724b84ea010acd5b958ac0a1f1025b4d (patch)
tree9110fc80dcacabb240d4b7e8fce3ed149543f3eb /bootstrap
parent301854537d134325585c0321e27c74fbd4da370f (diff)
downloadpkgsrc-d13c42fa724b84ea010acd5b958ac0a1f1025b4d.tar.gz
pull up revision 1.38 from src:
Remove some code which makes file lookup rely on the fact that the first two directory entries are "." and "..". This behaviour is not required by applicable standards, and actually not provided by "coda". Now we get the "." and ".." into the per-directiry hash tables, but this should not hurt. fixes bmake build on Fedora Core 2, PR pkg/26140 from Shoichi Miyake.
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/bmake/dir.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/bootstrap/bmake/dir.c b/bootstrap/bmake/dir.c
index afa027b36f2..a3d8a6cc8e4 100644
--- a/bootstrap/bmake/dir.c
+++ b/bootstrap/bmake/dir.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.1.1.1 2004/03/11 13:04:07 grant Exp $ */
+/* $NetBSD: dir.c,v 1.2 2004/11/06 15:09:22 grant Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -39,20 +39,20 @@
*/
#ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: dir.c,v 1.1.1.1 2004/03/11 13:04:07 grant Exp $";
+static char rcsid[] = "$NetBSD: dir.c,v 1.2 2004/11/06 15:09:22 grant Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)dir.c 8.2 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: dir.c,v 1.1.1.1 2004/03/11 13:04:07 grant Exp $");
+__RCSID("$NetBSD: dir.c,v 1.2 2004/11/06 15:09:22 grant Exp $");
#endif
#endif /* not lint */
#endif
#if !defined(MAKE_BOOTSTRAP) && !defined(lint)
-__IDSTRING(rcs_id,"$Id: dir.c,v 1.1.1.1 2004/03/11 13:04:07 grant Exp $");
+__IDSTRING(rcs_id,"$Id: dir.c,v 1.2 2004/11/06 15:09:22 grant Exp $");
#endif
/*-
@@ -1252,12 +1252,6 @@ Dir_AddDir (path, name)
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) {
#if defined(sun) && defined(d_ino) /* d_ino is a sunos4 #define for d_fileno */
/*