summaryrefslogtreecommitdiffstats
path: root/bin/chflags/chflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chflags/chflags.c')
-rw-r--r--bin/chflags/chflags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index 053a7a7..02137eb 100644
--- a/bin/chflags/chflags.c
+++ b/bin/chflags/chflags.c
@@ -115,7 +115,7 @@ main(int argc, char *argv[])
fts_options |= FTS_LOGICAL;
}
} else
- fts_options = FTS_LOGICAL;
+ fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL;
/* XXX: Why don't chflags and lchflags have compatible prototypes? */
if (hflag)
OpenPOWER on IntegriCloud