s3: smbd: Ensure get_real_filename() copes with empty pathnames.
authorJeremy Allison <jra@samba.org>
Tue, 21 Aug 2018 19:05:34 +0000 (12:05 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 22 Aug 2018 19:50:41 +0000 (21:50 +0200)
commit9c71f61ed8a31d287d343d4f2e68cb40c57a2b89
tree32e495908274fd218e47d2dcd50b9e765b720f92
parentfb81fb2d93be7fdf5081a057e4d70d9f53a72df3
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
source3/smbd/filename.c