aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/mtree/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_cmds/mtree/verify.c')
-rw-r--r--file_cmds/mtree/verify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file_cmds/mtree/verify.c b/file_cmds/mtree/verify.c
index 7471652..4978098 100644
--- a/file_cmds/mtree/verify.c
+++ b/file_cmds/mtree/verify.c
@@ -70,7 +70,9 @@ mtree_verifyspec(FILE *fi)
RECORD_FAILURE(60, WARN_MISMATCH);
return rval;
} else {
- RECORD_FAILURE(61, WARN_MISMATCH);
+ if (mval != 0) {
+ RECORD_FAILURE(61, WARN_MISMATCH);
+ }
return mval;
}
}