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

Fix f_flags/f_mode in case of lookup_instantiate_filp() from open(pathname, 3)



Just set f_flags when shoving struct file into nameidata; don't
postpone that until __dentry_open().  do_filp_open() has correct
value; lookup_instantiate_filp() doesn't - we lose the difference
between O_RDWR and 3 by that point.

We still set .intent.open.flags, so no fs code needs to be changed.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 628ff7c1
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