aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mtree/verify.c
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>1999-12-09 20:38:36 +0000
committerJosef Karthauser <joe@FreeBSD.org>1999-12-09 20:38:36 +0000
commit68bc9a5737fe2e8c693656b93c136ce2e1aa79c3 (patch)
tree94a91a2a2dd10f41c853bbbeb9f92cc2b7996786 /usr.sbin/mtree/verify.c
parentf2cbe161be98af8a950706a9d98953d9b0034d14 (diff)
Notes
Diffstat (limited to 'usr.sbin/mtree/verify.c')
-rw-r--r--usr.sbin/mtree/verify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/mtree/verify.c b/usr.sbin/mtree/verify.c
index 9b165cfc6b06..9422e5e2e797 100644
--- a/usr.sbin/mtree/verify.c
+++ b/usr.sbin/mtree/verify.c
@@ -201,10 +201,16 @@ miss(p, tail)
if (chown(path, p->st_uid, p->st_gid)) {
(void)printf("%s: user/group/mode not modified: %s\n",
path, strerror(errno));
+ (void)printf("%s: warning: file mode %snot set\n", path,
+ (p->flags & F_FLAGS) ? "and file flags " : "");
continue;
}
if (chmod(path, p->st_mode))
(void)printf("%s: permissions not set: %s\n",
path, strerror(errno));
+ if ((p->flags & F_FLAGS) && p->st_flags &&
+ chflags(path, p->st_flags))
+ (void)printf("%s: file flags not set: %s\n",
+ path, strerror(errno));
}
}