]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3832] Reindented
authorFrancis Dupont <fdupont@isc.org>
Wed, 30 Apr 2025 08:37:22 +0000 (10:37 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 16 May 2025 09:20:43 +0000 (12:20 +0300)
src/lib/util/filesystem.cc

index d6ae8e9939401f46b2bbdd97af5ae89de1331ddf..875b4776416188fb8cc5a4c570a8fa0ecf5aa97f 100644 (file)
@@ -239,19 +239,19 @@ FileManager::validatePath(const std::string supported_path_str, const std::strin
 
     auto parent_path = input_path.parentPath();
     if (!parent_path.empty()) {
-         if (!enforce_path) {
-             // Security set to lax, let it fly.
-             return (input_path_str);
-         }
+        if (!enforce_path) {
+            // Security set to lax, let it fly.
+            return (input_path_str);
+        }
 
 
-         // We only allow absolute path equal to default. Catch an invalid path.
+        // We only allow absolute path equal to default. Catch an invalid path.
         if (parent_path != supported_path_copy) {
-             isc_throw(BadValue, "invalid path specified: '"
+            isc_throw(BadValue, "invalid path specified: '"
                       << parent_path << "', supported path is '"
                       << supported_path_copy << "'");
-         }
-     }
+        }
+    }
 
     std::string valid_path(supported_path_copy + "/" +  filename);
     return (valid_path);