mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 00:32:37 -04:00
SyncFile: open with O_EXCL (or equivalent)
This commit is contained in:
parent
62a2a7302e
commit
e41f3ecc5b
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class SyncFile:
|
|||
"""
|
||||
|
||||
def __init__(self, path):
|
||||
self.fd = open(path, 'wb')
|
||||
self.fd = open(path, 'xb')
|
||||
self.fileno = self.fd.fileno()
|
||||
|
||||
def __enter__(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue