Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip use the data size in case stdout was a pipe (M....
details: https://anonhg.NetBSD.org/src/rev/a2b10e75737f
branches: trunk
changeset: 994500:a2b10e75737f
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 11 01:42:36 2018 +0000
description:
use the data size in case stdout was a pipe (M. Levinson)
diffstat:
usr.bin/gzip/unlz.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r f88cccee90e2 -r a2b10e75737f usr.bin/gzip/unlz.c
--- a/usr.bin/gzip/unlz.c Sun Nov 11 01:26:08 2018 +0000
+++ b/usr.bin/gzip/unlz.c Sun Nov 11 01:42:36 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unlz.c,v 1.5 2018/10/29 00:14:37 christos Exp $ */
+/* $NetBSD: unlz.c,v 1.6 2018/11/11 01:42:36 christos Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -575,7 +575,12 @@
}
if (insize)
*insize = rv;
+#if 0
+ /* Does not work with pipes */
rv = ftello(lz.fout);
+#else
+ rv = data_size;
+#endif
out:
lz_destroy(&lz);
return rv;
Home |
Main Index |
Thread Index |
Old Index