From 912d4e903ff1ffb7107b4b14f36f5501de4cde82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Wed, 23 Jan 2019 14:01:26 +0100 Subject: [PATCH] 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 Reviewed-by: Andreas Schneider (cherry picked from commit cd1ac3668cd164bd5f7cadf7b59df9541aaef83e) --- source4/scripting/bin/sambaundoguididx | 3 +-- 1 file changed, 1 insertion(+), 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:"]) -- 2.17.1