[SCM] Samba Shared Repository - branch v4-8-test updated

Karolin Seeger kseeger at samba.org
Tue Aug 28 14:06:02 UTC 2018


The branch, v4-8-test has been updated
       via  1b01025 s3: smbd: Ensure get_real_filename() copes with empty pathnames.
       via  cdbfc79 WHATSNEW: Fix wrong assignment.
      from  3c64c21 VERSION: Bump version up to 4.8.6...

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-8-test


- Log -----------------------------------------------------------------
commit 1b01025bf8c86dd67f36994733f0866eecffb3e1
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
    
    (cherry picked from commit 9c71f61ed8a31d287d343d4f2e68cb40c57a2b89)
    
    Autobuild-User(v4-8-test): Karolin Seeger <kseeger at samba.org>
    Autobuild-Date(v4-8-test): Tue Aug 28 16:05:05 CEST 2018 on sn-devel-144

commit cdbfc79381f619a28d1e3cc68916733621799db3
Author: Karolin Seeger <kseeger at samba.org>
Date:   Tue Aug 28 10:06:55 2018 +0200

    WHATSNEW: Fix wrong assignment.
    
    Signed-off-by: Karolin Seeger <kseeger at samba.org>

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

Summary of changes:
 WHATSNEW.txt            | 4 ++--
 source3/smbd/filename.c | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index cde1819..d528dfe 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -13,13 +13,13 @@ Changes since 4.8.4:
 o  Jeremy Allison <jra at samba.org>
    * BUG 13474: python: pysmbd: Additional error path leak fix.
    * BUG 13511: libsmbclient: Initialize written value before use.
-   * BUG 13519: ldb: Refuse to build Samba against a newer minor version of
-     ldb.
    * BUG 13527: s3: libsmbclient: Fix cli_splice() fallback when reading less
      than a complete file.
    * BUG 13537: Using "sendfile = yes" with SMB2 can cause CPU spin.
 
 o  Andrew Bartlett <abartlet at samba.org>
+   * BUG 13519: ldb: Refuse to build Samba against a newer minor version of
+     ldb.
    * BUG 13575: ldb: Release LDB 1.3.6.
 
 o  Bailey Berro <baileyberro at chromium.org>
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 1186918..4d79ea1 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