From: Gunnar Beutner Date: Mon, 26 Oct 2015 05:53:36 +0000 (+0100) Subject: Undo accidental edit in icinga.cpp from 6fa58a52 X-Git-Tag: v2.4.0~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43bbbfce136c83af5d4f999ee4c3561be0ece47b;p=icinga2 Undo accidental edit in icinga.cpp from 6fa58a52 refs #9927 --- diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 454257709..2365cb4be 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -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();