diff options
author | jilles <jilles@FreeBSD.org> | 2009-05-24 15:27:25 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-05-24 15:27:25 +0000 |
commit | 46ec0102e5ca0d1167fcce632f981d012682b966 (patch) | |
tree | 1403e041fa750f96ad9401cfa9461378241273b7 /bin | |
parent | 18697420d26165701abf3b9d3a048bc65fc731da (diff) | |
download | FreeBSD-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')
-rw-r--r-- | bin/chflags/chflags.c | 2 |
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) |