From d2a331c3766230530a740216ece8bd5f5bb36bff Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sat, 24 Feb 2018 11:44:07 +1100 Subject: [PATCH] Fix compile error --- src/lib/core/App.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/App.cpp b/src/lib/core/App.cpp index aa5db401..c3a7db64 100644 --- a/src/lib/core/App.cpp +++ b/src/lib/core/App.cpp @@ -175,7 +175,7 @@ App::initApp(int argc, const char** argv) // this is a simple way to allow the core process to talk to X. this avoids // the "WARNING: primary screen unavailable: unable to open screen" error. // a better way would be to use xauth cookie and dbus to get access to X. - if (static_cast((!(argsBase().m_runAsUid) == 0 != -1))) { + if (argsBase().m_runAsUid >= 0) { if (setuid(argsBase().m_runAsUid) == 0) { LOG((CLOG_DEBUG "process uid was set to: %d", argsBase().m_runAsUid)); }