Account for fts(3)'s FTS_SLNONE case for symbolic links which have

a nonexistant target, in addition to the FTS_SL previously, so e.g.
setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf
succeeds.

Approved by:	re
This commit is contained in:
Brian Feldman 2002-12-12 20:32:45 +00:00
parent 0509e374ac
commit 77ae814e61

View File

@ -148,6 +148,7 @@ main(int argc, char **argv)
case FTS_DEFAULT: /* do default */ case FTS_DEFAULT: /* do default */
case FTS_F: /* do regular */ case FTS_F: /* do regular */
case FTS_SL: /* do symlink */ case FTS_SL: /* do symlink */
case FTS_SLNONE: /* do symlink */
case FTS_W: /* do whiteout */ case FTS_W: /* do whiteout */
if (apply_specs(specs, ftsent, hflag, vflag)) { if (apply_specs(specs, ftsent, hflag, vflag)) {
if (eflag) { if (eflag) {