bitwise OR.
This commit is contained in:
parent
4d127a14ca
commit
b95c166ed7
1 changed files with 2 additions and 1 deletions
|
@ -184,6 +184,7 @@ with open(out_file, 'w') as handle:
|
|||
out_file_uid = os.stat(out_file).st_uid
|
||||
|
||||
# give write permissions to group
|
||||
os.chmod(out_file, stat.S_IWGRP)
|
||||
st = os.stat(out_file)
|
||||
os.chmod(out_file, st.st_mode | stat.S_IWGRP)
|
||||
# chown out file to group
|
||||
os.chown(out_file, out_file_uid, out_file_grp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue