diff --git a/backup.py b/backup.py index a4118a4..7c6b934 100755 --- a/backup.py +++ b/backup.py @@ -260,7 +260,7 @@ class Backup(object): exec_fd, exec_tmp = tempfile.mkstemp(prefix = '_borgextend.', suffix = '._tmpexc', text = True, - dir = tmpdir)[1] + dir = tmpdir) # D'oh. I need to close the FD before messing with it. os.close(exec_fd) os.chmod(exec_tmp, mode = 0o0700)