svn commit: r327192 - stable/10/usr.bin/gzip

Xin LI delphij at FreeBSD.org
Tue Dec 26 08:33:04 UTC 2017


Author: delphij
Date: Tue Dec 26 08:33:02 2017
New Revision: 327192
URL: https://svnweb.freebsd.org/changeset/base/327192

Log:
  MFC r326791: Close the correct file descriptor.

Modified:
  stable/10/usr.bin/gzip/gzip.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/gzip/gzip.c
==============================================================================
--- stable/10/usr.bin/gzip/gzip.c	Tue Dec 26 08:32:02 2017	(r327191)
+++ stable/10/usr.bin/gzip/gzip.c	Tue Dec 26 08:33:02 2017	(r327192)
@@ -1630,7 +1630,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-stable-10 mailing list