summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2002-12-12 20:32:45 +0000
committergreen <green@FreeBSD.org>2002-12-12 20:32:45 +0000
commit7a0edb674ff30e9cb7249f3c260b3ce4bf0b1e2e (patch)
treec739ab1af793c5cb323b0afbd656fe7745cf9acc
parent40707e7c048955cb68d7f39294de0fee99ff9bb0 (diff)
downloadFreeBSD-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
-rw-r--r--usr.sbin/setfmac/setfmac.c1
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) {
OpenPOWER on IntegriCloud