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)
committerBjoern Jacke <bjacke@samba.org>
Sun, 17 Feb 2019 12:33:12 +0000 (13:33 +0100)
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>
source4/scripting/bin/sambaundoguididx

index 008e79805fffeb7ca2d38807fa98a17c724f5b6c..20a84c34618eafdf7f86b086ee6124a65cdb7f90 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:"])