]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librgw: treat empty root path as "/" on mount 43773/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 2 Nov 2021 13:47:31 +0000 (09:47 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 10 Nov 2021 19:34:20 +0000 (14:34 -0500)
commit8cee384cb25b29e532f49a67cc7edd2ff3cd2927
treefcaafa550e83f728851863d6a8746fdde7509673
parentb82ab4675c77874d93e1d031c5ac2ee831518cf6
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>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file_nfsns.cc