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:
parent
6e55db5445
commit
6a955a7506
@ -206,6 +206,7 @@ read_archive(struct bsdtar *bsdtar, char mode)
|
|||||||
fprintf(out, "\n");
|
fprintf(out, "\n");
|
||||||
bsdtar_warnc(bsdtar, 0, "%s",
|
bsdtar_warnc(bsdtar, 0, "%s",
|
||||||
archive_error_string(a));
|
archive_error_string(a));
|
||||||
|
bsdtar->return_value = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fprintf(out, "\n");
|
fprintf(out, "\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user