Skip to content
Commit a01e718f authored by Al Viro's avatar Al Viro
Browse files

fix a regression in atomic_open()



open("/foo/no_such_file", O_RDONLY | O_CREAT) on should fail with
EACCES when /foo is not writable; failing with ENOENT is obviously
wrong.  That got broken by a braino introduced when moving the
creat_error logics from atomic_open() to lookup_open().  Easy to
fix, fortunately.

Spotted-by: default avatar"Yan, Zheng" <ukernel@gmail.com>
Tested-by: default avatar"Yan, Zheng" <ukernel@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3d56c25e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment