mds/MDSAuthCaps: fix allow_all

Empty path is '', not '/'.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-07-08 15:58:51 -04:00
parent 6f60c6d185
commit 0b557d56a2

View File

@ -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;
};