[CCing bug-gnulib.]

Collin Funk wrote:
> > -truncate: cannot open '.' for writing: Is a directory
> > +truncate: cannot open '.' for writing: Invalid argument
> ...
> This is almost certainly worth documenting in the Gnulib manual, and
> perhaps replacing:

Worth documenting: Yes.

Worth overriding open(): Probably not. There are many situations where
systems, especially old ones, provide errno values that are not those
that POSIX wants to see. Typically the applications can work with either
errno value, the POSIX one and the platform-specific one, without needing
source code changes.

Bruno




Reply via email to