diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-29 07:09:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-07-29 07:09:08 +0000 |
commit | 5066f57e09b5dcb83abbbdefccdc04ab09a8c6d7 (patch) | |
tree | d66fa46be757fe1c74261c0767e6ee0f8f97c4ed /usr.bin/compress/main.c | |
parent | 335572f24d0f6195a26463f8893737fe4d8ea115 (diff) |
Check cat, not pipin when deciding whether or not to make use
"stdout" as the filename in -l mode. Fixes "gzip -lN < foo.gz"
Diffstat (limited to 'usr.bin/compress/main.c')
-rw-r--r-- | usr.bin/compress/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c index c8abef3fa6d..1177ec98eab 100644 --- a/usr.bin/compress/main.c +++ b/usr.bin/compress/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.41 2003/07/27 19:04:22 millert Exp $ */ +/* $OpenBSD: main.c,v 1.42 2003/07/29 07:09:07 millert Exp $ */ static const char copyright[] = "@(#) Copyright (c) 1992, 1993\n\ @@ -35,7 +35,7 @@ static const char license[] = #if 0 static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94"; #else -static const char main_rcsid[] = "$OpenBSD: main.c,v 1.41 2003/07/27 19:04:22 millert Exp $"; +static const char main_rcsid[] = "$OpenBSD: main.c,v 1.42 2003/07/29 07:09:07 millert Exp $"; #endif #endif /* not lint */ @@ -628,7 +628,7 @@ decompress(const char *in, char *out, const struct compressor *method, if (list) { if (info.mtime == 0) info.mtime = (u_int32_t)sb->st_mtime; - list_stats(pipin ? "stdout" : out, method, &info); + list_stats(cat ? "stdout" : out, method, &info); } else if (verbose > 0) { verbose_info(out, info.total_in, info.total_out, info.hlen); |