Merge pull request #458 from meejah/2881.magic-folder-umask.0

don't set execute bit in default umask
This commit is contained in:
meejah 2018-01-11 15:55:40 -07:00 committed by GitHub
commit 7e393510d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,7 +872,7 @@ class WriteFileMixin(object):
initial_path_u = os.path.dirname(abspath_u)
fileutil.make_dirs_with_absolute_mode(local_path_u, initial_path_u, (~ self._umask) & 0777)
fileutil.write(replacement_path_u, file_contents)
os.chmod(replacement_path_u, (~ self._umask) & 0777)
os.chmod(replacement_path_u, (~ self._umask) & 0666)
# FUDGE_SECONDS is used to determine if another process
# has written to the same file concurrently. This is described