From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26200 invoked by alias); 10 Apr 2019 09:04:54 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 26168 invoked by uid 9078); 10 Apr 2019 09:04:53 -0000 Date: Wed, 10 Apr 2019 09:04:00 -0000 Message-ID: <20190410090453.26156.qmail@sourceware.org> From: corinna@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [rebase - The rebase tool, core of the automatic rebase facility during postinstall] branch master, updated. 7571020dc831618544c1b50d5f805c589f7385a0 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 1def5794ab48d0eae1589378df79714d8ff755d7 X-Git-Newrev: 7571020dc831618544c1b50d5f805c589f7385a0 X-SW-Source: 2019-q2/txt/msg00000.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/rebase.git;h=7571020dc831618544c1b50d5f805c589f7385a0 commit 7571020dc831618544c1b50d5f805c589f7385a0 Author: Michael Haubenwallner Date: Tue Apr 9 11:03:42 2019 +0200 On error, avoid a close on the -1 file descriptor. Diff: --- rebase.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rebase.c b/rebase.c index ca3c59d..56537d6 100644 --- a/rebase.c +++ b/rebase.c @@ -1441,7 +1441,7 @@ is_rebaseable (const char *pathname) fd = open (pathname, O_RDONLY); if (fd == -1) - goto done; + return status; offset = lseek (fd, pe_signature_offset_offset, SEEK_SET); if (offset == -1)