Re: ramfs problem... (unlink of sparse file in "D" state)

Stefan Traby (stefan@hello-penguin.com)
Mon, 8 Jan 2001 19:51:40 +0100


On Mon, Jan 08, 2001 at 01:33:50PM -0500, Alexander Viro wrote:
>
> On Mon, 8 Jan 2001, Stefan Traby wrote:
>
> > On Mon, Jan 08, 2001 at 01:22:49PM -0500, Alexander Viro wrote:
> >
> > > Here's another one: suppose that /foo is a mountpoint and you have
> > > no read permissions on it. Try to open the thing...
> >
> > I would return EACCESS.
> > [EACCES]
> > Search permission is denied for a component of the path prefix.
>
> And prefix would be what? "/"? Besides, I said that you don't have
> read permissions on /foo, not search ones.

And what ?

--------------------------------------------------
changing errno. If the implementation needs to use path to
determine the value of name and the implementation does not support
the association of name with the file specified by path, or if the
process did not have appropriate privileges to query the file
specified by path, or path does not exist, pathconf() returns -1
and errno is set to indicate the error.
--------------------------------------------------

So this is case is covered.

-- 

ciao - Stefan

" ( cd /lib ; ln -s libBrokenLocale-2.2.so libNiedersachsen.so ) " Stefan Traby Linux/ia32 fax: +43-3133-6107-9 Mitterlasznitzstr. 13 Linux/alpha phone: +43-3133-6107-2 8302 Nestelbach Linux/sparc http://www.hello-penguin.com Austria mailto://st.traby@opengroup.org Europe mailto://stefan@hello-penguin.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/