From: Björn Jacke Date: Wed, 23 Jan 2019 13:01:26 +0000 (+0100) Subject: sambaundoguididx: use the right escaped oder unescaped sam ldb files X-Git-Tag: samba-4.8.10~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66a0bb5575db194d54a1b88410adf321f5f624b5;p=thirdparty%2Fsamba.git 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) --- 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:"])