s3: smbd: Ensure get_real_filename() copes with empty pathnames.
commit1b01025bf8c86dd67f36994733f0866eecffb3e1
authorJeremy Allison <jra@samba.org>
Tue, 21 Aug 2018 19:05:34 +0000 (21 12:05 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Aug 2018 14:05:05 +0000 (28 16:05 +0200)
tree2c5878b581a9fce662402017765aebf9461bd136
parentcdbfc79381f619a28d1e3cc68916733621799db3
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)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Tue Aug 28 16:05:05 CEST 2018 on sn-devel-144
source3/smbd/filename.c