diff options
author | joe <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-17 14:19:33 +0000 |
commit | 8de98cc2fa7b119cc8deb33c61c9496d25825b49 (patch) | |
tree | 33363d4028bb162e624a3a2c5257ab020378f6e0 /usr.sbin/mtree/compare.c | |
parent | 3e8b2c512359fd536c5f66fbd9e265064d461886 (diff) | |
download | FreeBSD-src-8de98cc2fa7b119cc8deb33c61c9496d25825b49.zip FreeBSD-src-8de98cc2fa7b119cc8deb33c61c9496d25825b49.tar.gz |
Switch over to using the new fflagstostr and strtofflags library calls.
Diffstat (limited to 'usr.sbin/mtree/compare.c')
-rw-r--r-- | usr.sbin/mtree/compare.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index 007edb7..4168121 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -88,6 +88,7 @@ compare(name, s, p) u_long len, val; int fd, label; char *cp, *tab = ""; + char *fflags; label = 0; switch(s->type) { @@ -224,10 +225,14 @@ typeerr: LABEL; */ if ((s->flags & F_FLAGS) && s->st_flags != p->fts_statp->st_flags) { LABEL; - (void)printf("%sflags (\"%s\" is not ", tab, - getflags(s->st_flags, "none")); - (void)printf("\"%s\"", - getflags(p->fts_statp->st_flags, "none")); + fflags = flags_to_string(s->st_flags); + (void)printf("%sflags (\"%s\" is not ", tab, fflags); + free(fflags); + + fflags = flags_to_string(p->fts_statp->st_flags); + (void)printf("\"%s\"", fflags); + free(fflags); + if (uflag) if (chflags(p->fts_accpath, s->st_flags)) (void)printf(", not modified: %s)\n", |