]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/KeyRing.cc
import 14.2.4 nautilus point release
[ceph.git] / ceph / src / auth / KeyRing.cc
index 7f207d8fa538ed229e31ec7daa7012bcb78be58e..41e440455c283ecb48dcd1cf1898786541c81196 100644 (file)
@@ -17,6 +17,7 @@
 #include <memory>
 #include <sstream>
 #include <algorithm>
+#include <boost/algorithm/string/replace.hpp>
 #include "auth/KeyRing.h"
 #include "common/ceph_context.h"
 #include "common/config.h"
@@ -255,6 +256,7 @@ void KeyRing::print(ostream& out)
       string caps;
       using ceph::decode;
       decode(caps, dataiter);
+      boost::replace_all(caps, "\"", "\\\"");
       out << "\tcaps " << q->first << " = \"" << caps << '"' << std::endl;
     }
   }