From e83cc1e5fda75322f62ddb510d56cde84aeea0b9 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Thu, 11 May 2017 18:00:06 +0200 Subject: [PATCH] Use geteuid instead of getuid --- src/anbox/cmds/container_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/cmds/container_manager.cpp b/src/anbox/cmds/container_manager.cpp index 593be7e..b64f002 100644 --- a/src/anbox/cmds/container_manager.cpp +++ b/src/anbox/cmds/container_manager.cpp @@ -62,7 +62,7 @@ anbox::cmds::ContainerManager::ContainerManager() WARNING(""); } - if (getuid() != 0) { + if (geteuid() != 0) { ERROR("You are not running the container-manager as root. Generally you don't"); ERROR("want to run the container-manager manually unless you're a developer"); ERROR("as it is started by the init system of your operating system.");