[rebase - The rebase tool, core of the automatic rebase facility during postinstall] branch master, updated. 7571020dc831618544c1b50d5f805c589f7385a0

corinna-9JcytcrH/[email protected]
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/rebase.git;h=7571020dc831618544c1b50d5f805c589f7385a0

commit 7571020dc831618544c1b50d5f805c589f7385a0
Author: Michael Haubenwallner <michael.haubenwallner-X1qIfqiZ0iHYPTWX/[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.