This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]