svn commit: r327191 - stable/11/usr.bin/gzip
Xin LI
delphij at FreeBSD.org
Tue Dec 26 08:32:04 UTC 2017
Author: delphij
Date: Tue Dec 26 08:32:02 2017
New Revision: 327191
URL: https://svnweb.freebsd.org/changeset/base/327191
Log:
MFC r326791: Close the correct file descriptor.
Modified:
stable/11/usr.bin/gzip/gzip.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/gzip/gzip.c
==============================================================================
--- stable/11/usr.bin/gzip/gzip.c Tue Dec 26 07:08:11 2017 (r327190)
+++ stable/11/usr.bin/gzip/gzip.c Tue Dec 26 08:32:02 2017 (r327191)
@@ -1717,7 +1717,7 @@ file_uncompress(char *file, char *outfile, size_t outs
if (fd != -1)
close(fd);
if (zfd != -1 && zfd != STDOUT_FILENO)
- close(fd);
+ close(zfd);
return -1;
}
More information about the svn-src-all
mailing list