[rebase PATCH] On error, avoid a close on the -1 file descriptor.

Michael Haubenwallner michael.haubenwallner@ssi-schaefer.com
Tue Apr 9 09:04:00 GMT 2019


---
 rebase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.19.2



More information about the Cygwin-patches mailing list