]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
sambaundoguididx: use the right escaped oder unescaped sam ldb files
authorBjörn Jacke <bj@sernet.de>
Wed, 23 Jan 2019 13:01:26 +0000 (14:01 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 11 Mar 2019 07:52:23 +0000 (07:52 +0000)
the correct filename is taken from the partition database before, we should not
unescape that because this can result in a new unescaped ldb file being created
and the script not to work at all.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13759

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit cd1ac3668cd164bd5f7cadf7b59df9541aaef83e)

source4/scripting/bin/sambaundoguididx

index 24a95e20d7f4ceade059d10d8961aaa244aba881..41d2030e075bcb40cad27e36651c861588d0fb7b 100755 (executable)
@@ -57,8 +57,7 @@ privatedir = os.path.dirname(url)
 
 dbs = []
 for part in partitions[0]['partition']:
-    file_quoted = part.split(":")[1]
-    tdbname = urllib.unquote(file_quoted)
+    tdbname = part.split(":")[1]
     tdbpath = os.path.join(privatedir, tdbname)
 
     db = ldb.Ldb(url=tdbpath, options=["modules:"])