skipRootCheck should also prevent dropping of privs on Linux
This commit is contained in:
3
one.cpp
3
one.cpp
@@ -1488,7 +1488,8 @@ int main(int argc,char **argv)
|
|||||||
|
|
||||||
#ifdef __UNIX_LIKE__
|
#ifdef __UNIX_LIKE__
|
||||||
#ifdef ZT_HAVE_DROP_PRIVILEGES
|
#ifdef ZT_HAVE_DROP_PRIVILEGES
|
||||||
dropPrivileges(argv[0],homeDir);
|
if (!skipRootCheck)
|
||||||
|
dropPrivileges(argv[0],homeDir);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string pidPath(homeDir + ZT_PATH_SEPARATOR_S + ZT_PID_PATH);
|
std::string pidPath(homeDir + ZT_PATH_SEPARATOR_S + ZT_PID_PATH);
|
||||||
|
|||||||
Reference in New Issue
Block a user