svn commit: r326791 - head/usr.bin/gzip
Xin LI
delphij at FreeBSD.org
Tue Dec 12 06:56:22 UTC 2017
Author: delphij
Date: Tue Dec 12 06:56:21 2017
New Revision: 326791
URL: https://svnweb.freebsd.org/changeset/base/326791
Log:
Close the correct file descriptor.
MFC after: 2 weeks
Modified:
head/usr.bin/gzip/gzip.c
Modified: head/usr.bin/gzip/gzip.c
==============================================================================
--- head/usr.bin/gzip/gzip.c Tue Dec 12 04:08:30 2017 (r326790)
+++ head/usr.bin/gzip/gzip.c Tue Dec 12 06:56:21 2017 (r326791)
@@ -1718,7 +1718,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