[rebase PATCH] On error, avoid a close on the -1 file descriptor.
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Apr 10 09:05:00 GMT 2019
On Apr 9 11:03, Michael Haubenwallner wrote:
> ---
> 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
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20190410/9918ed9e/attachment.sig>
More information about the Cygwin-patches
mailing list