Browse Source

Turn off setuser by default under windows

Or else it will call Security_getUser
jeffluo35 8 years ago
parent
commit
c75f1e92c3
1 changed files with 4 additions and 1 deletions
  1. 4 1
      client/Configurator.c

+ 4 - 1
client/Configurator.c

@@ -449,8 +449,11 @@ static void security(struct Allocator* tempAlloc, List* conf, struct Log* log, s
     int noforks = 1;
     int chroot = 1;
     int setupComplete = 1;
+#ifdef _WIN32
+    int setuser = 0;
+#else
     int setuser = 1;
-
+#endifint setuser = 1;
     int uid = -1;
     int keepNetAdmin = 1;