summaryrefslogtreecommitdiff
path: root/bin/pax
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-03-02 20:42:57 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-03-02 20:42:57 +0000
commite516a54a925181933c9f41012fd91250b1b683b7 (patch)
treed8505ac67fc34884d5df8654b35121bd635e2920 /bin/pax
parent73449becb70eba51e9fc66616abf403bb90937d0 (diff)
Say how many blocks were read/written in cpio mode
Diffstat (limited to 'bin/pax')
-rw-r--r--bin/pax/ar_io.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c
index 5fd79f791e3..0029cfd767d 100644
--- a/bin/pax/ar_io.c
+++ b/bin/pax/ar_io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar_io.c,v 1.11 1997/02/27 23:32:56 michaels Exp $ */
+/* $OpenBSD: ar_io.c,v 1.12 1997/03/02 20:42:56 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.11 1997/02/27 23:32:56 michaels Exp $";
+static char rcsid[] = "$OpenBSD: ar_io.c,v 1.12 1997/03/02 20:42:56 tholo Exp $";
#endif
#endif /* not lint */
@@ -405,7 +405,9 @@ ar_close()
return;
}
- if (strcmp(NM_TAR, argv0) != 0 && strcmp(NM_CPIO, argv0) != 0)
+ if (strcmp(NM_CPIO, argv0) == 0)
+ (void)fprintf(outf, "%qu blocks\n", (rdcnt ? rdcnt : wrcnt) / 5120);
+ else 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",