Re: Linux's interpretation of trailing '/'

Jeremy Fitzhardinge (jeremy@goop.org)
Tue, 15 Dec 1998 23:36:06 -0800 (PST)


On 15-Dec-98 Ragnar Hojland Espinosa wrote:
> I don't find the error message logical, since you can't cat a
> directory.
>
> cat: z/: Not a directory
> cat: /: Is a directory

Right, because the first error comes from open("z/") failing, whereas the
second one comes from trying to use read(fd, , ) on a directory file descriptor.

J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/