Whamcloud - gitweb
fuse2fs: respect requested mode in mkdir
authorSteven Luo <steven@steven676.net>
Thu, 23 Nov 2023 23:33:37 +0000 (15:33 -0800)
committerSteven Luo <steven@steven676.net>
Thu, 23 Nov 2023 23:43:53 +0000 (15:43 -0800)
commit4cfa9f70fb0fb3f42c4d9e79ee2d401d4968e1b0
treeb5dc2747cf5558caa8a2c426365fea9f7177a51c
parentfe93a29695f7398046bc9c6aea43ba890687c4c4
fuse2fs: respect requested mode in mkdir

At the moment, op_mkdir() ORs the requested mode with fs->umask, which
results in the group/other write permission bits always being cleared
regardless of what the creating process requested.  Instead, leave the
requested mode alone so that the resulting directory has the permssions
the creator expects.

Signed-off-by: Steven Luo <steven@steven676.net>
misc/fuse2fs.c