]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/Launcher.java
Change the "nobody" gid to of -2 "short" (not int)...
[gigi.git] / 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 (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!");
                        }
                }
                                Log.getLogger(Launcher.class).warn("Couldn't set uid!");
                        }
                }