pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap/bmake pull up revision 1.38 from src:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c99066b6ff3
branches:  trunk
changeset: 483035:0c99066b6ff3
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Nov 06 15:09:22 2004 +0000

description:
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:

 bootstrap/bmake/dir.c |  14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r 57f27a2d5db6 -r 0c99066b6ff3 bootstrap/bmake/dir.c
--- a/bootstrap/bmake/dir.c     Sat Nov 06 15:03:40 2004 +0000
+++ b/bootstrap/bmake/dir.c     Sat Nov 06 15:09:22 2004 +0000
@@ -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 @@
            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 */
                /*



Home | Main Index | Thread Index | Old Index