lkml.org 
[lkml]   [1998]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 15 Dec 1998 23:36:06 -0800 (PST)
FromJeremy Fitzhardinge <>
SubjectRe: Linux's interpretation of trailing '/'

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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2010