diff options
author | green <green@FreeBSD.org> | 2002-12-12 20:32:45 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-12-12 20:32:45 +0000 |
commit | 7a0edb674ff30e9cb7249f3c260b3ce4bf0b1e2e (patch) | |
tree | c739ab1af793c5cb323b0afbd656fe7745cf9acc /usr.sbin/setfmac | |
parent | 40707e7c048955cb68d7f39294de0fee99ff9bb0 (diff) | |
download | FreeBSD-src-7a0edb674ff30e9cb7249f3c260b3ce4bf0b1e2e.zip FreeBSD-src-7a0edb674ff30e9cb7249f3c260b3ce4bf0b1e2e.tar.gz |
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
Diffstat (limited to 'usr.sbin/setfmac')
-rw-r--r-- | usr.sbin/setfmac/setfmac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/setfmac/setfmac.c b/usr.sbin/setfmac/setfmac.c index 7fc2201..aee0905 100644 --- a/usr.sbin/setfmac/setfmac.c +++ b/usr.sbin/setfmac/setfmac.c @@ -148,6 +148,7 @@ main(int argc, char **argv) case FTS_DEFAULT: /* do default */ case FTS_F: /* do regular */ case FTS_SL: /* do symlink */ + case FTS_SLNONE: /* do symlink */ case FTS_W: /* do whiteout */ if (apply_specs(specs, ftsent, hflag, vflag)) { if (eflag) { |