]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librgw: treat empty root path as "/" on mount 43968/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 2 Nov 2021 13:47:31 +0000 (09:47 -0400)
committerCory Snyder <csnyder@iland.com>
Tue, 16 Nov 2021 15:26:38 +0000 (10:26 -0500)
commiteb4d20cc43a711cec9269b6c8d1c7da815c55328
tree20a0ad0905d49e9b60d30c8bbd7672bcbf2c73b3
parent80726a08b9b8f04143ace55e4959aeb8ec834098
librgw: treat empty root path as "/" on mount

This prevents an invalid access (and possible crash) when path is
given as "" in ganesha.conf.

Fixes: https://tracker.ceph.com/issues/53030
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 8cee384cb25b29e532f49a67cc7edd2ff3cd2927)
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file_nfsns.cc