]> WPIA git - gigi.git/commitdiff
Change the "nobody" gid to of -2 "short" (not int)...
authorFelix Dörre <felix@dogcraft.de>
Mon, 30 Jun 2014 09:22:58 +0000 (11:22 +0200)
committerFelix Dörre <felix@dogcraft.de>
Mon, 30 Jun 2014 09:22:58 +0000 (11:22 +0200)
src/org/cacert/gigi/Launcher.java

index f8c7f783c23dc84c1690beba1876c79e58518b9d..6c234909f5714b3fe55df18cf6bac43afcf44c21 100644 (file)
@@ -56,7 +56,7 @@ public class Launcher {
                if (connector.getPort() <= 1024
                                && !System.getProperty("os.name").toLowerCase().contains("win")) {
                        SetUID uid = new SetUID();
-                       if (!uid.setUid(-2, -2).getSuccess()) {
+                       if (!uid.setUid(65536 - 2, 65536 - 2).getSuccess()) {
                                Log.getLogger(Launcher.class).warn("Couldn't set uid!");
                        }
                }