Skip to content

Commit 083cdee

Browse files
committed
lkl tools: cptofs: reset umask
We need to reset umask so that open and mkdir preserves the mode of the source file. Fixes torvalds#364. Signed-off-by: Octavian Purdila <[email protected]>
1 parent 214eb08 commit 083cdee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/lkl/cptofs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ int main(int argc, char **argv)
571571
goto out_close;
572572
}
573573

574+
lkl_sys_umask(0);
575+
574576
for (i = 0; i < cla.npaths - 1; i++) {
575577
ret = copy_one(cla.paths[i], mpoint, cla.paths[cla.npaths - 1]);
576578
if (ret)

0 commit comments

Comments
 (0)