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

From: Linus Torvalds
Date: Thu May 13 2010 - 11:27:44 EST




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@xxxxxxxxxx

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

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/