summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree/compare.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-10-06 12:48:55 +0000
committerphk <phk@FreeBSD.org>2000-10-06 12:48:55 +0000
commit78f27a920c604a0cfbd345813425ee184055fc63 (patch)
treec8f051b53944a2b02927b1295561fa705754cac4 /usr.sbin/mtree/compare.c
parent2e5c04d01b54248c5190be0ddb1d2bea0a53217d (diff)
downloadFreeBSD-src-78f27a920c604a0cfbd345813425ee184055fc63.zip
FreeBSD-src-78f27a920c604a0cfbd345813425ee184055fc63.tar.gz
Don't try to compare other attributes if the type doesn't match, it's
nothing but trouble, and no use anyway.
Diffstat (limited to 'usr.sbin/mtree/compare.c')
-rw-r--r--usr.sbin/mtree/compare.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c
index caaaff5..19e48cd 100644
--- a/usr.sbin/mtree/compare.c
+++ b/usr.sbin/mtree/compare.c
@@ -115,6 +115,7 @@ compare(name, s, p)
typeerr: LABEL;
(void)printf("\ttype expected %s found %s\n",
ftype(s->type), inotype(p->fts_statp->st_mode));
+ return (label);
}
break;
}
OpenPOWER on IntegriCloud