stages/mkdir: explicitly set mode using os.chmod
Documentation for os.mkdir() says that the mode is ignored on some systems. Also umask value may affect the final mode. So we set the mode explicitly. Set the mode explicitly. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
a0f4cff361
commit
a988aacf99
1 changed files with 5 additions and 0 deletions
|
|
@ -62,6 +62,11 @@ def main(tree, options):
|
|||
else:
|
||||
os.mkdir(target, mode)
|
||||
|
||||
# Documentation for os.mkdir() says that the mode is
|
||||
# ignored on some systems. Also umask value may affect
|
||||
# the final mode. So we set the mode explicitly.
|
||||
os.chmod(target, mode, follow_symlinks=False)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue