Skip to content
Commit b20ee877 authored by Yicheng Qin's avatar Yicheng Qin Committed by Pavel Emelyanov
Browse files

test/zdtm/mountpoints: clear the umask when creating



 /dev/null

Clear the umask when creating /dev/null and restore the umask
after the creation.
Mountpoints test unlinks and makes new /dev/null inside by mknod.
But in some linux, there is default umask, e.g., as 022. It means that
/dev/null created directly cannot be wrote by group and other users.
It is not reasonable because /dev/null should be accessable to all
users.

Signed-off-by: default avatarYicheng Qin <yichengq@google.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent fe01c987
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment