diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/chflags/chflags.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index 40c5b3f..f46baa0 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -99,15 +99,16 @@ main(argc, argv) if (argc < 2) usage(); - fts_options = FTS_PHYSICAL; if (Rflag) { + fts_options = FTS_PHYSICAL; if (Hflag) fts_options |= FTS_COMFOLLOW; if (Lflag) { fts_options &= ~FTS_PHYSICAL; fts_options |= FTS_LOGICAL; } - } + } else + fts_options = FTS_LOGICAL; flags = *argv; if (*flags >= '0' && *flags <= '7') { |