Fixed unused result compile error
This commit is contained in:
parent
906e9e28fc
commit
1f073e6219
1 changed files with 3 additions and 1 deletions
|
@ -523,7 +523,9 @@ namespace
|
|||
// The program is setuid root. Not normal on Linux where we use setcap, but if this
|
||||
// needs to run on non-Linux Unixes, setuid root is what it will bneed to be to be able
|
||||
// to do chroot().
|
||||
setuid(getuid());
|
||||
if (setuid(getuid()) != 0) {
|
||||
Application::instance().logger().error(std::string("setuid() failed: ") + strerror(errno));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue