Page MenuHomeFreeBSD

D34046.diff
No OneTemporary

D34046.diff

diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c
+++ b/usr.bin/gzip/gzip.c
@@ -1655,10 +1655,13 @@
case FT_XZ:
if (lflag) {
size = unxz_len(fd);
- print_list_out(in_size, size, file);
- return -1;
- }
- size = unxz(fd, zfd, NULL, 0, NULL);
+ if (!tflag) {
+ print_list_out(in_size, size, file);
+ close(fd);
+ return -1;
+ }
+ } else
+ size = unxz(fd, zfd, NULL, 0, NULL);
break;
#endif
@@ -1683,8 +1686,10 @@
default:
if (lflag) {
print_list(fd, in_size, outfile, isb.st_mtime);
- close(fd);
- return -1; /* XXX */
+ if (!tflag) {
+ close(fd);
+ return -1; /* XXX */
+ }
}
size = gz_uncompress(fd, zfd, NULL, 0, NULL, file);

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 14, 12:27 PM (13 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36723684
Default Alt Text
D34046.diff (727 B)

Event Timeline