mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Merge of netcon with edge and unification of make processes.
This commit is contained in:
parent
ac8918992b
commit
425d311ce8
13 changed files with 36 additions and 148 deletions
2
one.cpp
2
one.cpp
|
@ -1096,10 +1096,12 @@ int main(int argc,char **argv)
|
|||
}
|
||||
|
||||
#ifdef __UNIX_LIKE__
|
||||
#ifndef ZT_ONE_NO_ROOT_CHECK
|
||||
if ((!skipRootCheck)&&(getuid() != 0)) {
|
||||
fprintf(stderr,"%s: must be run as root (uid 0)"ZT_EOL_S,argv[0]);
|
||||
return 1;
|
||||
}
|
||||
#endif // !ZT_ONE_NO_ROOT_CHECK
|
||||
if (runAsDaemon) {
|
||||
long p = (long)fork();
|
||||
if (p < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue