summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2019-01-23 14:01:26 +0100
committerKarolin Seeger <kseeger@samba.org>2019-03-11 07:52:23 +0000
commit66a0bb5575db194d54a1b88410adf321f5f624b5 (patch)
treeaddba9b46d9eca04af19152966a9e0877f651fca
parent7c476487867e5dc83b9e844db7be4c3d358fc006 (diff)
downloadsamba-66a0bb5575db194d54a1b88410adf321f5f624b5.tar.gz
sambaundoguididx: use the right escaped oder unescaped sam ldb files
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)
-rwxr-xr-xsource4/scripting/bin/sambaundoguididx3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/bin/sambaundoguididx b/source4/scripting/bin/sambaundoguididx
index 24a95e20d7f..41d2030e075 100755
--- a/source4/scripting/bin/sambaundoguididx
+++ b/source4/scripting/bin/sambaundoguididx
@@ -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:"])