aboutsummaryrefslogtreecommitdiff
path: root/fs/binfmt_aout.c
diff options
context:
space:
mode:
authorGravatar Jan Kara <jack@suse.cz> 2010-05-13 12:52:57 +0200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2010-05-13 08:46:04 -0700
commit002baeecf53677d2034113e34197ec221f42e037 (patch)
tree081c54c4a9a266a894a00165e97dabfb212a2470 /fs/binfmt_aout.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiw... (diff)
downloadlinux-002baeecf53677d2034113e34197ec221f42e037.tar.gz
linux-002baeecf53677d2034113e34197ec221f42e037.tar.bz2
linux-002baeecf53677d2034113e34197ec221f42e037.zip
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 <akpm@linux-foundation.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Reported-by: Marius Tolzmann <tolzmann@molgen.mpg.de> Acked-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions