Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2017 08:32:03 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r327191 - stable/11/usr.bin/gzip
Message-ID:  <201712260832.vBQ8W39U074623@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712260832.vBQ8W39U074623>