From c2fa95e9ced2e229d37d6f64230134a0827ea792 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 29 Apr 2021 19:14:59 +0200 Subject: [PATCH] NodeUtility::WriteNodeConfigObjects(): avoid unneccessary Utility::SetFileOwnership() refs #8743 --- lib/cli/nodeutility.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/cli/nodeutility.cpp b/lib/cli/nodeutility.cpp index bd343ab4c..0c6f1908f 100644 --- a/lib/cli/nodeutility.cpp +++ b/lib/cli/nodeutility.cpp @@ -160,10 +160,6 @@ bool NodeUtility::WriteNodeConfigObjects(const String& filename, const Array::Pt Log(LogWarning, "cli") << "Cannot set ownership for user '" << user << "' group '" << group << "' on path '" << path << "'. Verify it yourself!"; } - if (!Utility::SetFileOwnership(filename, user, group)) { - Log(LogWarning, "cli") - << "Cannot set ownership for user '" << user << "' group '" << group << "' on path '" << path << "'. Verify it yourself!"; - } std::fstream fp; String tempFilename = Utility::CreateTempFile(filename + ".XXXXXX", 0644, fp);