summaryrefslogtreecommitdiffstats
path: root/fs/smbfs/getopt.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-12-19 16:10:39 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2009-12-22 18:27:34 +0100
commit482928d59db668b8d82a48717f78986d8cea72e9 (patch)
tree6985c64474172ddfb67c737bc4a49e588c49d055 /fs/smbfs/getopt.c
parentanonfd: Allow making anon files read-only (diff)
downloadlinux-482928d59db668b8d82a48717f78986d8cea72e9.tar.xz
linux-482928d59db668b8d82a48717f78986d8cea72e9.zip
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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/smbfs/getopt.c')
0 files changed, 0 insertions, 0 deletions