-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 9/23/2008 5:25 AM:
>> In an effort to unify this behavior, I was considering making m4 1.4.12
>> pre-reject directories with EISDIR
>
> Then I would split the fopen() call into open() + fdopen(), and use fstat()
> between
Eric Blake wrote:
> The use case where I discovered this bug was with m4 1.4.11. Compare:
>
> mingw$ m4 .
> m4.exe: .: Permission denied
> Linux$ m4 .
> m4:/:1: Read error
> OpenBSD$ m4 . && echo done
> done
> EMX$ m4 .
>
>
> In an effort to unify this behavior, I was considering making m4 1.4.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 9/22/2008 6:15 PM:
> But fopen() on a directory? Who does that? If no-one needs that, I would be
> satisfied with mentioning the problem under "Portability problems not fixed by
> Gnulib" in the doc.
The use case where I d
Hi Eric,
Eric Blake wrote:
> Adding such a workaround would allow code like this to work on mingw:
>
> FILE *f = fopen (".", "r");
> DIR *d = fdopendir (fileno (f));
> readdir (d);
I understand the heavy use of fdopendir() in coreutils: on those systems
which implement this function natively, it