User: Password:
|
|
Subscribe / Log in / New account

Re: [PATCH] vfs: Fix O_NOFOLLOW behavior for paths with trailing slashes

From:  Linus Torvalds <torvalds-AT-linux-foundation.org>
To:  Jan Kara <jack-AT-suse.cz>
Subject:  Re: [PATCH] vfs: Fix O_NOFOLLOW behavior for paths with trailing slashes
Date:  Thu, 13 May 2010 08:24:59 -0700 (PDT)
Cc:  LKML <linux-kernel-AT-vger.kernel.org>, linux-fsdevel-AT-vger.kernel.org, stable-AT-kernel.org, Andrew Morton <akpm-AT-linux-foundation.org>, Al Viro <viro-AT-zeniv.linux.org.uk>
Archive-link:  Article, Thread



On Thu, 13 May 2010, Jan Kara wrote:
>
> According to specification
> mkdir d; ln -s d a; open("a/", O_NOFOLLOW | O_RDONLY)
> should return success but currently it did return ELOOP. Fix the code to ignore
> O_NOFOLLOW in case the provided path has trailing slashes. This is a regression
> caused by path lookup cleanup patch series.
> 
> CC: stable@kernel.org

Hmm? Is this correct? Isn't the bug introduced in this merge window, and 
thus not relevant for stable?

		Linus


(Log in to post comments)


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds