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 08:59:33 +0000
commit9dc374fee03a2468912c9eabdfa1637c0cea6bf3 (patch)
tree619d718594332fa43f53dc957db8d9e1d1053764
parentf8748b8bfc20ab67bc53a8324495fa7b4f49a794 (diff)
downloadsamba-9dc374fee03a2468912c9eabdfa1637c0cea6bf3.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:"])