]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/config.cc
update sources to 12.2.10
[ceph.git] / ceph / src / common / config.cc
index 88e3da9b50aae824ebf5dd51a4ed81f68e50f38d..b3a98a595f2e4089bf9fb017e0a880ca8b9ed446 100644 (file)
@@ -59,7 +59,7 @@ int ceph_resolve_file_search(const std::string& filename_list,
   int ret = -ENOENT;
   list<string>::iterator iter;
   for (iter = ls.begin(); iter != ls.end(); ++iter) {
-    int fd = ::open(iter->c_str(), O_RDONLY);
+    int fd = ::open(iter->c_str(), O_RDONLY|O_CLOEXEC);
     if (fd < 0) {
       ret = -errno;
       continue;