diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-06-15 18:44:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-06-15 18:44:02 +0000 |
commit | e7ebda86ceec4fc0c060d2f5599dbb35ec5d577d (patch) | |
tree | 7e952129beb2fbcf790a77305f4a0c38281ad905 /usr.bin | |
parent | a0c978b37d7fb19187165553f3d4d1cfc1475c3d (diff) |
bye bye whiteouts
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/diff/diffdir.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c index 771052243fb..764cd9d535a 100644 --- a/usr.bin/diff/diffdir.c +++ b/usr.bin/diff/diffdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffdir.c,v 1.29 2004/11/26 20:09:56 otto Exp $ */ +/* $OpenBSD: diffdir.c,v 1.30 2005/06/15 18:44:01 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -21,7 +21,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diffdir.c,v 1.29 2004/11/26 20:09:56 otto Exp $"; +static const char rcsid[] = "$OpenBSD: diffdir.c,v 1.30 2005/06/15 18:44:01 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -219,7 +219,7 @@ slurpdir(char *path, char **bufp, int enoentok) */ for (entries = 0, cp = buf; cp < ebuf; ) { dp = (struct dirent *)cp; - if (dp->d_fileno != 0 && dp->d_type != DT_WHT) + if (dp->d_fileno != 0) entries++; if (dp->d_reclen <= 0) break; @@ -228,8 +228,7 @@ slurpdir(char *path, char **bufp, int enoentok) dirlist = emalloc(sizeof(struct dirent *) * (entries + 1)); for (entries = 0, cp = buf; cp < ebuf; ) { dp = (struct dirent *)cp; - if (dp->d_fileno != 0 && dp->d_type != DT_WHT && - !excluded(dp->d_name)) { + if (dp->d_fileno != 0 && !excluded(dp->d_name)) { dp->d_status = 0; dirlist[entries++] = dp; } |