Re: bug: mount on an open directory succeeds

From: Alexander Viro (viro@math.psu.edu)
Date: Mon Mar 06 2000 - 06:50:10 EST


On Mon, 6 Mar 2000 almesber@lrc.di.epfl.ch wrote:

> yields different st1 and st2 (2), and quite clearly a violation of
> POSIX if
>
> stat("bar",&st1);
> stat("./bar",&st2);
>
> yields different st1 and st2 in any case (2). "." is _meant_ to be
> a no-op.
>
> (1) "questionable", because POSIX explicitly excludes the mount
> operation, so by using mount(), this example is outside the
> scope of the standard.

The whole situation is outside (both cases) because you can't
get the object in question without mount()...

-
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:19 EST