diff options
Diffstat (limited to 'zto/one.cpp')
| -rw-r--r-- | zto/one.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zto/one.cpp b/zto/one.cpp index 1f38361..93504cf 100644 --- a/zto/one.cpp +++ b/zto/one.cpp @@ -1488,7 +1488,8 @@ int main(int argc,char **argv) #ifdef __UNIX_LIKE__ #ifdef ZT_HAVE_DROP_PRIVILEGES - dropPrivileges(argv[0],homeDir); + if (!skipRootCheck) + dropPrivileges(argv[0],homeDir); #endif std::string pidPath(homeDir + ZT_PATH_SEPARATOR_S + ZT_PID_PATH); |
