The Samba-Bugzilla – Attachment 14860 Details for
Bug 13759
sambaundoguididx fails with escaped ldb filenames
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch cherry-picked from master for 4.10, 4.9 and 4.8
0001-sambaundoguididx-use-the-right-escaped-oder-unescape.patch (text/plain), 1.29 KB, created by
Karolin Seeger
on 2019-02-21 11:17:45 UTC
(
hide
)
Description:
Proposed patch cherry-picked from master for 4.10, 4.9 and 4.8
Filename:
MIME Type:
Creator:
Karolin Seeger
Created:
2019-02-21 11:17:45 UTC
Size:
1.29 KB
patch
obsolete
>From 912d4e903ff1ffb7107b4b14f36f5501de4cde82 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= <bj@sernet.de> >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 <bjacke@samba.org> >Reviewed-by: Andreas Schneider <asn@samba.org> >(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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
bjacke
:
review+
asn
:
review+
Actions:
View
Attachments on
bug 13759
: 14860