bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with add_exclude_file()


From: Jeffrey Walton
Subject: Re: Problem with add_exclude_file()
Date: Mon, 24 May 2021 08:23:29 -0400

On Mon, May 24, 2021 at 7:39 AM Gisle Vanem <gisle.vanem@gmail.com> wrote:
> ...
> So I patched 'exclude.c' like this:
> --- a/lib/exclude.c 2021-03-17 21:03:14
> +++ b/lib/exclude.c 2021-05-24 13:33:05
> @@ -683,7 +683,7 @@
>
>     if (use_stdin)
>       in = stdin;
> -  else if (! (in = fopen (file_name, "re")))
> +  else if (! (in = fopen (file_name, "r")))
>       return -1;
>
>
> a presto! GNU-diff now works fine. So what is
> this mode "re" that fails on Windows?

... An optional "e" following the above causes the fopen() call to set
the FD_CLOEXEC flag on the underlying file descriptor.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]