]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDSAuthCaps: fix allow_all
authorSage Weil <sage@redhat.com>
Wed, 8 Jul 2015 19:58:51 +0000 (15:58 -0400)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 13:39:30 +0000 (09:39 -0400)
Empty path is '', not '/'.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mds/MDSAuthCaps.h

index 31941780d39532dac3c446ab0d850c856880ba7b..143444e0c5412871f0b79c556ef97426af79ae15 100644 (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;
 };