mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mds/MDSAuthCaps: fix allow_all
Empty path is '', not '/'. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
6f60c6d185
commit
0b557d56a2
@ -75,7 +75,7 @@ struct MDSCapMatch {
|
||||
|
||||
bool is_match_all() const
|
||||
{
|
||||
return uid == MDS_AUTH_UID_ANY && path == "/";
|
||||
return uid == MDS_AUTH_UID_ANY && path == "";
|
||||
}
|
||||
bool match(const std::string &target_path, const int target_uid) const;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user