summaryrefslogtreecommitdiffstats
path: root/bin/chflags
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chflags')
-rw-r--r--bin/chflags/chflags.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index 40c5b3f..f46baa0 100644
--- a/bin/chflags/chflags.c
+++ b/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') {
OpenPOWER on IntegriCloud