diff options
author | Jan Kara <[email protected]> | 2010-05-13 12:52:57 +0200 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-05-13 08:46:04 -0700 |
commit | 002baeecf53677d2034113e34197ec221f42e037 (patch) | |
tree | 081c54c4a9a266a894a00165e97dabfb212a2470 /net/lapb/lapb_in.c | |
parent | fc8e38f142dd59f81306ff6a81c1351e9eb0e014 (diff) |
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 <[email protected]>
Cc: Al Viro <[email protected]>
Reported-by: Marius Tolzmann <[email protected]>
Acked-by: Miklos Szeredi <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions