Fixed unused result compile error

This commit is contained in:
Mihai Varga 2015-05-13 13:00:33 +03:00
parent 906e9e28fc
commit 1f073e6219

View file

@ -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));
}
}
}
}