From: Jan Kara Date: Thu, 13 May 2010 10:52:57 +0000 (+0200) Subject: vfs: Fix O_NOFOLLOW behavior for paths with trailing slashes X-Git-Tag: v2.6.34~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=002baeecf53677d2034113e34197ec221f42e037;p=pandora-kernel.git vfs: Fix O_NOFOLLOW behavior for paths with trailing slashes According to specification mkdir d; ln -s d a; open("a/", O_NOFOLLOW | O_RDONLY) should return success but currently it returns ELOOP. This is a regression caused by path lookup cleanup patch series. Fix the code to ignore O_NOFOLLOW in case the provided path has trailing slashes. Cc: Andrew Morton Cc: Al Viro Reported-by: Marius Tolzmann Acked-by: Miklos Szeredi Signed-off-by: Jan Kara Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed