Re: bug: mount on an open directory succeeds

From: George (greerga@nidhogg.ham.muohio.edu)
Date: Mon Mar 06 2000 - 11:47:37 EST


On Mon, 6 Mar 2000, V Ganesh wrote:

>so it breaks the assumption that . == pwd.

So does removing the directory you're currently in. Your point?

>$ ls
>foo bar
>$ cat foo
>foo: no such file or directory
>$ cat ./foo
>FOO
>$
>
>cat foo ought to have worked. anything else is a gross violation of the least
>surprise principle, if not any actual standard.

Think of the 'ls' problem as being:

Non-working:
'ls' in /mnt/foo overmounted.
stat("blah") = /mnt/foo/blah (That directory is different now.)

Working:
'ls' in /mnt/foo overmounted.
stat("./blah") = ./blah (The current one.)

-George Greer

-
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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:20 EST