Skip to content
Snippets Groups Projects
Commit cbfef6ee authored by Andrea Venturoli's avatar Andrea Venturoli Committed by Michael Osipov
Browse files

net/samba419: "samba-tool domain backup offline" hangs

PR:		250906
Tested by:	ml@netfence.it
Approved by:	otis (mentor), kiwi, vvd, allanjude
MFH:		2025Q1
Differential Revision:	https://reviews.freebsd.org/D49044

(cherry picked from commit 1db23ed5)
parent 7f683829
No related branches found
No related tags found
No related merge requests found
PORTNAME= ${SAMBA4_BASENAME}419 PORTNAME= ${SAMBA4_BASENAME}419
PORTVERSION= ${SAMBA4_VERSION} PORTVERSION= ${SAMBA4_VERSION}
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES?= net CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME} DISTNAME= ${SAMBA4_DISTNAME}
......
--- python/samba/tdb_util.py.orig 2025-02-17 11:38:24.136379000 +0100
+++ python/samba/tdb_util.py 2025-02-17 11:38:44.171612000 +0100
@@ -37,9 +37,10 @@
raise FileNotFoundError(2, "could not find tdbbackup tool: "
"is tdb-tools installed?")
- tdbbackup_cmd = [toolpath, "-s", ".copy.tdb", file1]
if readonly:
- tdbbackup_cmd.append("-r")
+ tdbbackup_cmd = [toolpath, "-r", "-s", ".copy.tdb", file1]
+ else:
+ tdbbackup_cmd = [toolpath, "-s", ".copy.tdb", file1]
status = subprocess.check_call(tdbbackup_cmd, close_fds=True, shell=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment