diff options
author | phk <phk@FreeBSD.org> | 2000-10-03 13:13:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-10-03 13:13:47 +0000 |
commit | 42e3d092baad7027558e9c9e4861920f6a488df8 (patch) | |
tree | 5084beef4b37a04950da07aaa79f34314d3bd5ed /usr.sbin/mtree/verify.c | |
parent | 98f1b14abae6bcc470fa2be3a0284923272e0b5a (diff) | |
download | FreeBSD-src-42e3d092baad7027558e9c9e4861920f6a488df8.zip FreeBSD-src-42e3d092baad7027558e9c9e4861920f6a488df8.tar.gz |
Make the output of mtree(8) more systematic and machine readable.
The new format is:
filename {changed,missing,extra}
$field expected $foo found $bar
...
Fix various bugs along the way:
Don't complain about directory sizes differing.
Correctly check flags.
Diffstat (limited to 'usr.sbin/mtree/verify.c')
-rw-r--r-- | usr.sbin/mtree/verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mtree/verify.c b/usr.sbin/mtree/verify.c index a599fad..0da0e12 100644 --- a/usr.sbin/mtree/verify.c +++ b/usr.sbin/mtree/verify.c @@ -139,7 +139,7 @@ vwalk() continue; extra: if (!eflag) { - (void)printf("extra: %s", RP(p)); + (void)printf("%s extra", RP(p)); if (rflag) { if ((S_ISDIR(p->fts_statp->st_mode) ? rmdir : unlink)(p->fts_accpath)) { @@ -179,7 +179,7 @@ miss(p, tail) if (qflag && stat(path, &statbuf) == 0) p->flags |= F_VISIT; else - (void)printf("missing: %s", path); + (void)printf("%s missing", path); } if (p->type != F_DIR && p->type != F_LINK) { putchar('\n'); |