lkml.org 
[lkml]   [1998]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Serious flaw in glibc ?
On 13 Oct 1998, Linus Torvalds wrote:

> Yes, ugly. However, the other alternative (that doesn't work with some
> 2.1.x kernels, but they are broken, so you can just blame the kernel in
> that case) is to just append a '/' to the end of the name. That way the
> kernel will not allow you to open the file unless it's a directory.

I notice this behavior still happening in recent 2.1 kernels that doesn't
happen in 2.0 kernels:

[sroot@blue:/root]# ls -l foo
/bin/ls: foo: No such file or directory
[sroot@blue:/root]# ls -l foo/
/bin/ls: foo/: Not a directory
[sroot@blue:/root]# ls -l foo/.
/bin/ls: foo/.: No such file or directory

(In 2.0.*, the error is always ENOENT).

Is this intentional or should it be fixed?

Simon-

| Simon Kirby | Systems Administration |
| mailto:sim@netnation.com | NetNation Communications |
| http://www.netnation.com/ | Tech: (604) 684-6892 |


-
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:45    [W:2.013 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site