diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-20 16:15:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-20 16:15:27 +0000 |
commit | edf8e04dd74bb31e4d5a5e1e252c605fd120c8e3 (patch) | |
tree | 59e3e90684c3105287c053d6260cd135aa471089 /usr.bin/find/main.c | |
parent | a6f46949f164c471ac5e8dbde642a433d32a4148 (diff) |
find -LH was -L, but must be -H according to POSIX;
patch from Daniel Dickman <didickman at gmail dot com> via tech@,
though i'm updating the manual in a different way;
ok millert@ "looks good" deraadt@
Diffstat (limited to 'usr.bin/find/main.c')
-rw-r--r-- | usr.bin/find/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 48b2123c290..9bc52b4e3f7 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.25 2009/12/09 13:59:43 millert Exp $ */ +/* $OpenBSD: main.c,v 1.26 2009/12/20 16:15:26 schwarze Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -75,6 +75,8 @@ main(int argc, char *argv[]) switch(ch) { case 'H': ftsoptions |= FTS_COMFOLLOW; + ftsoptions |= FTS_PHYSICAL; + ftsoptions &= ~FTS_LOGICAL; break; case 'd': isdepth = 1; @@ -84,6 +86,7 @@ main(int argc, char *argv[]) break; case 'h': case 'L': + ftsoptions &= ~FTS_COMFOLLOW; ftsoptions &= ~FTS_PHYSICAL; ftsoptions |= FTS_LOGICAL; break; |