diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-19 06:50:17 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-19 06:50:17 +0000 |
commit | b4a7d4e3e252163e52c4224129b12dfeae1d036e (patch) | |
tree | e79af00df5172c5b7d65c8df584927a4c738dd83 | |
parent | 756fece7421eb2f7159da60a2033975f352c6bcc (diff) |
Move the except check.
-rw-r--r-- | usr.bin/lndir/lndir.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/lndir/lndir.c b/usr.bin/lndir/lndir.c index 8f9d9f48c03..0bff860bdb3 100644 --- a/usr.bin/lndir/lndir.c +++ b/usr.bin/lndir/lndir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lndir.c,v 1.2 1996/08/19 06:34:03 downsj Exp $ */ +/* $OpenBSD: lndir.c,v 1.3 1996/08/19 06:50:16 downsj Exp $ */ /* $XConsortium: lndir.c /main/15 1995/08/30 10:56:18 gildea $ */ /* Create shadow link tree (after X11R4 script of the same name) Mark Reinhold (mbr@lcs.mit.edu)/3 January 1990 */ @@ -187,6 +187,11 @@ int rel; /* if true, prepend "../" to fn before using */ while (dp = readdir (df)) { if (dp->d_name[strlen(dp->d_name) - 1] == '~') continue; + for (cur = exceptions; cur != (struct except *)NULL; + cur = cur->next) { + if (!strcmp (dp->d_name, cur->name)) + goto next; /* can't continue */ + } strcpy (p, dp->d_name); if (n_dirs > 0) { @@ -202,11 +207,6 @@ int rel; /* if true, prepend "../" to fn before using */ (dp->d_name[1] == '\0' || (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) continue; - for (cur = exceptions; cur != (struct except *)NULL; - cur = cur->next) { - if (!strcmp (dp->d_name, cur->name)) - goto next; /* can't continue */ - } if (!strcmp (dp->d_name, "RCS")) continue; if (!strcmp (dp->d_name, "SCCS")) |