diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c index 053a7a7db4cc..02137eb30c34 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)