Use geteuid instead of getuid
This commit is contained in:
parent
e60e020413
commit
e83cc1e5fd
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ anbox::cmds::ContainerManager::ContainerManager()
|
||||||
WARNING("");
|
WARNING("");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getuid() != 0) {
|
if (geteuid() != 0) {
|
||||||
ERROR("You are not running the container-manager as root. Generally you don't");
|
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("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.");
|
ERROR("as it is started by the init system of your operating system.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue