The Samba-Bugzilla – Attachment 14442 Details for
Bug 13585
Unable to create file/directory under root of the share due to empty dirpath during get_real_filename()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.9.next, 4.8.next, 4.7.next.
0001-s3-smbd-Ensure-get_real_filename-copes-with-empty-pa.patch (text/plain), 1.19 KB, created by
Jeremy Allison
on 2018-08-22 20:56:40 UTC
(
hide
)
Description:
git-am fix for 4.9.next, 4.8.next, 4.7.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2018-08-22 20:56:40 UTC
Size:
1.19 KB
patch
obsolete
>From 2a7a76a501601506fa997f91651da1facba2e610 Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Tue, 21 Aug 2018 12:05:34 -0700 >Subject: [PATCH] s3: smbd: Ensure get_real_filename() copes with empty > pathnames. > >Needed for vfs_glusterfs, as Gluster requires "." not '\0'. > >Based on a fix from Anoop C S <anoopcs@redhat.com> > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13585 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Ira Cooper <ira@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Wed Aug 22 21:50:41 CEST 2018 on sn-devel-144 > >(cherry picked from commit 9c71f61ed8a31d287d343d4f2e68cb40c57a2b89) >--- > source3/smbd/filename.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c >index 9e15af1916d..41c1710351e 100644 >--- a/source3/smbd/filename.c >+++ b/source3/smbd/filename.c >@@ -1443,6 +1443,11 @@ int get_real_filename(connection_struct *conn, const char *path, > int ret; > bool mangled; > >+ /* handle null paths */ >+ if ((path == NULL) || (*path == 0)) { >+ path = "."; >+ } >+ > mangled = mangle_is_mangled(name, conn->params); > > if (mangled) { >-- >2.18.0.1017.ga543ac7ca45-goog >
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:
jra
:
review?
(
obnox
)
ira
:
review+
Actions:
View
Attachments on
bug 13585
:
14441
| 14442