mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 20:00:20 +00:00
directories get +x, files do not
This commit is contained in:
parent
187eb562f2
commit
68783d8b8a
@ -872,7 +872,7 @@ class WriteFileMixin(object):
|
|||||||
initial_path_u = os.path.dirname(abspath_u)
|
initial_path_u = os.path.dirname(abspath_u)
|
||||||
fileutil.make_dirs_with_absolute_mode(local_path_u, initial_path_u, (~ self._umask) & 0777)
|
fileutil.make_dirs_with_absolute_mode(local_path_u, initial_path_u, (~ self._umask) & 0777)
|
||||||
fileutil.write(replacement_path_u, file_contents)
|
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
|
# FUDGE_SECONDS is used to determine if another process
|
||||||
# has written to the same file concurrently. This is described
|
# has written to the same file concurrently. This is described
|
||||||
|
Loading…
x
Reference in New Issue
Block a user