Undo accidental edit in icinga.cpp from 6fa58a52

refs #9927
This commit is contained in:
Gunnar Beutner 2015-10-26 06:53:36 +01:00
parent b72ba2b63a
commit 43bbbfce13
1 changed files with 2 additions and 2 deletions

View File

@ -384,10 +384,10 @@ int Main(void)
Logger::DisableTimestamp(true);
#ifndef _WIN32
if (command->GetImpersonationLevel() == ImpersonateRoot) {
/*if (getuid() != 0) {
if (getuid() != 0) {
Log(LogCritical, "cli", "This command must be run as root.");
return 0;
}*/
}
} else if (command && command->GetImpersonationLevel() == ImpersonateIcinga) {
String group = Application::GetRunAsGroup();
String user = Application::GetRunAsUser();