mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 07:12:54 -04:00
More sensible mode defaults when creating a unique file.
This commit is contained in:
parent
122e6b2ca1
commit
8464ce30d5
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ def check_permissions(filepath, mode, uid=0):
|
|||
return stat.S_IMODE(file_stat.st_mode) == mode and file_stat.st_uid == uid
|
||||
|
||||
|
||||
def unique_file(default_name, mode=0777):
|
||||
def unique_file(default_name, mode=0644):
|
||||
"""Safely finds a unique file for writing only (by default)."""
|
||||
count = 1
|
||||
f_parsed = os.path.splitext(default_name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue