Commit 9beb978b authored by Julien Muchembled's avatar Julien Muchembled

Oops. Use of & instead of - (to avoid bugs if umask contains 1 in unexpected...

Oops. Use of & instead of - (to avoid bugs if umask contains 1 in unexpected places) requires to invert mask beforehand.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28911 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8ada03a
...@@ -127,7 +127,7 @@ def main(): ...@@ -127,7 +127,7 @@ def main():
else: else:
shutil.move(path, 'bt5list') shutil.move(path, 'bt5list')
cur_umask = os.umask(0666) cur_umask = os.umask(0666)
os.chmod('bt5list', 0666 & cur_umask) os.chmod('bt5list', 0666 & ~cur_umask)
os.umask(cur_umask) os.umask(cur_umask)
os.chdir(cwd) os.chdir(cwd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment