=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compress/main.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- src/usr.bin/compress/main.c 2003/07/29 07:09:07 1.42 +++ src/usr.bin/compress/main.c 2003/07/29 18:33:11 1.43 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.42 2003/07/29 07:09:07 millert Exp $ */ +/* $OpenBSD: main.c,v 1.43 2003/07/29 18:33:11 millert Exp $ */ static const char copyright[] = "@(#) Copyright (c) 1992, 1993\n\ @@ -35,7 +35,7 @@ #if 0 static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #else -static const char main_rcsid[] = "$OpenBSD: main.c,v 1.42 2003/07/29 07:09:07 millert Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.43 2003/07/29 18:33:11 millert Exp $"; #endif #endif /* not lint */ @@ -628,7 +628,7 @@ if (list) { if (info.mtime == 0) info.mtime = (u_int32_t)sb->st_mtime; - list_stats(cat ? "stdout" : out, method, &info); + list_stats(out, method, &info); } else if (verbose > 0) { verbose_info(out, info.total_in, info.total_out, info.hlen); @@ -755,6 +755,9 @@ static off_t compressed_total, uncompressed_total, header_total; static u_int nruns; char *timestr; + + if (name != NULL && strcmp(name, "/dev/stdout") == 0) + name += 5; if (nruns == 0) { if (verbose >= 0) {