Date: Tue, 26 Dec 2017 08:33:02 +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-10@freebsd.org Subject: svn commit: r327192 - stable/10/usr.bin/gzip Message-ID: <201712260833.vBQ8X2dg074724@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712260833.vBQ8X2dg074724>