Added
Link Here
|
0 |
- |
1 |
--- python/samba/tdb_util.py.orig 2025-02-17 11:38:24.136379000 +0100 |
|
|
2 |
+++ python/samba/tdb_util.py 2025-02-17 11:38:44.171612000 +0100 |
3 |
@@ -37,9 +37,10 @@ |
4 |
raise FileNotFoundError(2, "could not find tdbbackup tool: " |
5 |
"is tdb-tools installed?") |
6 |
|
7 |
- tdbbackup_cmd = [toolpath, "-s", ".copy.tdb", file1] |
8 |
if readonly: |
9 |
- tdbbackup_cmd.append("-r") |
10 |
+ tdbbackup_cmd = [toolpath, "-r", "-s", ".copy.tdb", file1] |
11 |
+ else: |
12 |
+ tdbbackup_cmd = [toolpath, "-s", ".copy.tdb", file1] |
13 |
|
14 |
status = subprocess.check_call(tdbbackup_cmd, close_fds=True, shell=False) |
15 |
|