From: Sage Weil Date: Wed, 8 Jul 2015 19:58:51 +0000 (-0400) Subject: mds/MDSAuthCaps: fix allow_all X-Git-Tag: v10.0.0~123^2~89 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b557d56a27564c5c33c17aa18d8b2f41379cc20;p=ceph.git mds/MDSAuthCaps: fix allow_all Empty path is '', not '/'. Signed-off-by: Sage Weil --- diff --git a/src/mds/MDSAuthCaps.h b/src/mds/MDSAuthCaps.h index 31941780d395..143444e0c541 100644 --- a/src/mds/MDSAuthCaps.h +++ b/src/mds/MDSAuthCaps.h @@ -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; };