[Top][All Lists]

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

Re: Problem with add_exclude_file()

From: Gisle Vanem
Subject: Re: Problem with add_exclude_file()
Date: Mon, 24 May 2021 16:11:02 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Bruno Haible wrote:

The 'e' modifier to fopen() has the effect of adding an
O_CLOEXEC to the underlying open() call.

BY preprocessing 'fopen.c', I see the 'rpl_fopen()'
in my case is rather short. Since 'GNULIB_FOPEN_GNU'
seems *not* to be defined, it passes mode to
'orig_fopen()' with "re" intact. Hence the EINVAL.

I've no idea who/how '-DGNULIB_FOPEN_GNU' is supposed
to be set. But manually adding it, all is well.

It should be supported in GNU diff, because the 'exclude' module
depends on the 'fopen-gnu' module, and this module implemented the
'e' modifier.

What is the value of file_name here?



reply via email to

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