summaryrefslogtreecommitdiffstats
path: root/bin/chflags/chflags.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-05-24 15:27:25 +0000
committerjilles <jilles@FreeBSD.org>2009-05-24 15:27:25 +0000
commit46ec0102e5ca0d1167fcce632f981d012682b966 (patch)
tree1403e041fa750f96ad9401cfa9461378241273b7 /bin/chflags/chflags.c
parent18697420d26165701abf3b9d3a048bc65fc731da (diff)
downloadFreeBSD-src-46ec0102e5ca0d1167fcce632f981d012682b966.zip
FreeBSD-src-46ec0102e5ca0d1167fcce632f981d012682b966.tar.gz
Fix chflags -h in various cases: do not use link target's flags as original.
Patch slightly changed to align more with chmod.c. PR: bin/131999 Submitted by: bde Approved by: ed (mentor) MFC after: 3 weeks
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