]> granicus.if.org Git - icinga2/commitdiff
Undo accidental edit in icinga.cpp from 6fa58a52
authorGunnar Beutner <gunnar@beutner.name>
Mon, 26 Oct 2015 05:53:36 +0000 (06:53 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 26 Oct 2015 05:53:36 +0000 (06:53 +0100)
refs #9927

icinga-app/icinga.cpp

index 4542577092cdb6fc6a946969f1cf140fd07a1e0f..2365cb4bef39d2d94ac7026abca7f98bb1eb8aaf 100644 (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();