tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Use consistent errno for read(2) failure on directories
In article <20111209083354.GA2999%lynche.sis.pasteur.fr@localhost>,
Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
>-=-=-=-=-=-
>
>
>Hi,
>
>According to the online OpenGroup specification for read(2) available
>at [1], read(2) on directories is implementation dependant. If
>unsupported, it shall fail with EISDIR.
>
>Not all our file systems comply, and return random errno values in
>this case (mostly EINVAL or ENOTSUP).
>
>The attached patch fix some of them (the ones i have access to),
>adjust the man page accordingly and add a small testcase to exercize
>this.
>
>Is it ok to apply ?
>Thanks.
Looks good to me.
christos
Home |
Main Index |
Thread Index |
Old Index