Set the program return value non-zero if we enounter

an error while skipping the body of an entry during
"tar -t" processing.

Thanks to: Spencer Minear
PR: misc/112521
This commit is contained in:
Tim Kientzle 2007-05-08 15:22:21 +00:00
parent 6e55db5445
commit 6a955a7506

View File

@ -206,6 +206,7 @@ read_archive(struct bsdtar *bsdtar, char mode)
fprintf(out, "\n");
bsdtar_warnc(bsdtar, 0, "%s",
archive_error_string(a));
bsdtar->return_value = 1;
break;
}
fprintf(out, "\n");