From 43bbbfce136c83af5d4f999ee4c3561be0ece47b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 26 Oct 2015 06:53:36 +0100 Subject: [PATCH] Undo accidental edit in icinga.cpp from 6fa58a52 refs #9927 --- icinga-app/icinga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();