vfs_ceph_snapshots: fix root relative path handling
authorDavid Disseldorp <ddiss@samba.org>
Thu, 12 Dec 2019 21:14:50 +0000 (22:14 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 17 Dec 2019 22:40:31 +0000 (22:40 +0000)
commit54293f92cd83efc3a5a78fc29a85643921da9d32
treedf0a810beae940e6759f53bb3915139e474aa82d
parentfca2d3e0d1fa5af59e7b729f7c1d126f7b81e149
vfs_ceph_snapshots: fix root relative path handling

For file paths relative to root, ceph_snap_get_parent_path() may return
an empty parent dir string, in which case the CephFS snashot path should
be ".snap".

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14216

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph_snapshots.c