[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Aug 22 19:51:02 UTC 2018


The branch, master has been updated
       via  9c71f61 s3: smbd: Ensure get_real_filename() copes with empty pathnames.
      from  fb81fb2 libads: Simplify parse_spn()

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9c71f61ed8a31d287d343d4f2e68cb40c57a2b89
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Aug 21 12:05:34 2018 -0700

    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 at redhat.com>
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=13585
    
    Signed-off-by: Jeremy Allison <jra at samba.org>
    Reviewed-by: Ira Cooper <ira at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Wed Aug 22 21:50:41 CEST 2018 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/filename.c | 5 +++++
 1 file changed, 5 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 9e15af1..41c1710 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) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list