mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
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
This commit is contained in:
parent
f435931b4a
commit
a6412d5d4b
@ -115,7 +115,7 @@ main(int argc, char *argv[])
|
|||||||
fts_options |= FTS_LOGICAL;
|
fts_options |= FTS_LOGICAL;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
fts_options = FTS_LOGICAL;
|
fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL;
|
||||||
|
|
||||||
/* XXX: Why don't chflags and lchflags have compatible prototypes? */
|
/* XXX: Why don't chflags and lchflags have compatible prototypes? */
|
||||||
if (hflag)
|
if (hflag)
|
||||||
|
Loading…
Reference in New Issue
Block a user