diff options
author | 1997-02-16 07:51:12 +0000 | |
---|---|---|
committer | 1997-02-16 07:51:12 +0000 | |
commit | 284bb3d9dcbcddf27872a0e0b4d80c6b6a18122b (patch) | |
tree | 72d53512545f2b490faa35ee9348233c8f82781c | |
parent | when spawning editor child, use signal() instead of sigprocmask(SIG_BLOCK... (diff) | |
download | wireguard-openbsd-284bb3d9dcbcddf27872a0e0b4d80c6b6a18122b.tar.xz wireguard-openbsd-284bb3d9dcbcddf27872a0e0b4d80c6b6a18122b.zip |
Don't give summary line at end when using tar format
-rw-r--r-- | bin/pax/ar_io.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c index aff14dcfe10..4a235c50970 100644 --- a/bin/pax/ar_io.c +++ b/bin/pax/ar_io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar_io.c,v 1.8 1996/12/09 12:00:13 deraadt Exp $ */ +/* $OpenBSD: ar_io.c,v 1.9 1997/02/16 07:51:12 tholo Exp $ */ /* $NetBSD: ar_io.c,v 1.5 1996/03/26 23:54:13 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: ar_io.c,v 1.8 1996/12/09 12:00:13 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ar_io.c,v 1.9 1997/02/16 07:51:12 tholo Exp $"; #endif #endif /* not lint */ @@ -61,6 +61,7 @@ static char rcsid[] = "$OpenBSD: ar_io.c,v 1.8 1996/12/09 12:00:13 deraadt Exp $ #include <stdlib.h> #include <err.h> #include "pax.h" +#include "options.h" #include "extern.h" /* @@ -401,13 +402,14 @@ ar_close() return; } - (void)fprintf(outf, + if (strcmp(NM_TAR, argv0) != 0) + (void)fprintf(outf, # ifdef NET2_STAT - "%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n", + "%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n", # else - "%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n", + "%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n", # endif - argv0, frmt->name, arvol-1, flcnt, rdcnt, wrcnt); + argv0, frmt->name, arvol-1, flcnt, rdcnt, wrcnt); (void)fflush(outf); flcnt = 0; } |