NodeUtility::WriteNodeConfigObjects(): avoid unneccessary Utility::SetFileOwnership()

refs #8743
This commit is contained in:
Alexander A. Klimov 2021-04-29 19:14:59 +02:00
parent b08b30ee80
commit c2fa95e9ce
1 changed files with 0 additions and 4 deletions

View File

@ -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);