mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
skipRootCheck should also prevent dropping of privs on Linux
This commit is contained in:
parent
5e6a2a17b0
commit
fb71a6e2b4
1 changed files with 2 additions and 1 deletions
1
one.cpp
1
one.cpp
|
@ -1488,6 +1488,7 @@ int main(int argc,char **argv)
|
||||||
|
|
||||||
#ifdef __UNIX_LIKE__
|
#ifdef __UNIX_LIKE__
|
||||||
#ifdef ZT_HAVE_DROP_PRIVILEGES
|
#ifdef ZT_HAVE_DROP_PRIVILEGES
|
||||||
|
if (!skipRootCheck)
|
||||||
dropPrivileges(argv[0],homeDir);
|
dropPrivileges(argv[0],homeDir);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue