From 6a955a750637b7419c883534c2a7bad7a68d0f9d Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 8 May 2007 15:22:21 +0000 Subject: [PATCH] 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 --- usr.bin/tar/read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/tar/read.c b/usr.bin/tar/read.c index 2e44c9ee5195..4763b13ae0f4 100644 --- a/usr.bin/tar/read.c +++ b/usr.bin/tar/read.c @@ -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");