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: ldb-1.6.1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd1ac3668cd164bd5f7cadf7b59df9541aaef83e;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 --- diff --git a/source4/scripting/bin/sambaundoguididx b/source4/scripting/bin/sambaundoguididx index 008e79805ff..20a84c34618 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:"])