=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/dir.c,v retrieving revision 1.41 retrieving revision 1.42 diff -c -r1.41 -r1.42 *** src/usr.bin/make/dir.c 2004/04/07 13:11:35 1.41 --- src/usr.bin/make/dir.c 2004/06/22 19:58:20 1.42 *************** *** 1,5 **** /* $OpenPackages$ */ ! /* $OpenBSD: dir.c,v 1.41 2004/04/07 13:11:35 espie Exp $ */ /* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */ /* --- 1,5 ---- /* $OpenPackages$ */ ! /* $OpenBSD: dir.c,v 1.42 2004/06/22 19:58:20 espie Exp $ */ /* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */ /* *************** *** 881,898 **** if ((d = opendir(p->name)) == NULL) return NULL; - /* Skip the first two entries -- these will *always* be . and .. */ - (void)readdir(d); - (void)readdir(d); while ((dp = readdir(d)) != NULL) { ! #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 ! * (0-inode slots just take up space), so we have to do ! * it ourselves. */ ! if (dp->d_fileno == 0) ! continue; ! #endif /* sun && d_ino */ add_file(p, dp->d_name); } (void)closedir(d); --- 881,892 ---- if ((d = opendir(p->name)) == NULL) return NULL; while ((dp = readdir(d)) != NULL) { ! if (dp->d_name[0] == '.' && ! (dp->d_name[1] == '\0' || ! (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) ! continue; add_file(p, dp->d_name); } (void)closedir(d);