From owner-svn-src-head@freebsd.org Tue Dec 12 01:19:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47595E82B5A; Tue, 12 Dec 2017 01:19:10 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 142AF2B96; Tue, 12 Dec 2017 01:19:10 +0000 (UTC) (envelope-from cem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBC1J9cH056277; Tue, 12 Dec 2017 01:19:09 GMT (envelope-from cem@FreeBSD.org) Received: (from cem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBC1J9wO056276; Tue, 12 Dec 2017 01:19:09 GMT (envelope-from cem@FreeBSD.org) Message-Id: <201712120119.vBC1J9wO056276@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org using -f From: Conrad Meyer Date: Tue, 12 Dec 2017 01:19:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326786 - head/usr.bin/gzip X-SVN-Group: head X-SVN-Commit-Author: cem X-SVN-Commit-Paths: head/usr.bin/gzip X-SVN-Commit-Revision: 326786 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 01:19:10 -0000 Author: cem Date: Tue Dec 12 01:19:08 2017 New Revision: 326786 URL: https://svnweb.freebsd.org/changeset/base/326786 Log: gzip(1): Remove duplicate close() CID: 1383560 Reported by: Coverity Sponsored by: Dell EMC Isilon Modified: head/usr.bin/gzip/gzip.c Modified: head/usr.bin/gzip/gzip.c ============================================================================== --- head/usr.bin/gzip/gzip.c Tue Dec 12 00:51:39 2017 (r326785) +++ head/usr.bin/gzip/gzip.c Tue Dec 12 01:19:08 2017 (r326786) @@ -1444,7 +1444,6 @@ file_uncompress(char *file, char *outfile, size_t outs goto lose; } if (fstat(fd, &isb) != 0) { - close(fd); maybe_warn("can't stat %s", file); goto lose; }