From: Felix Dörre Date: Mon, 30 Jun 2014 09:22:58 +0000 (+0200) Subject: Change the "nobody" gid to of -2 "short" (not int)... X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=11f8b3a86233e81feeb820d559e0f34cb0f5b2ea;hp=4ad8e709ee749406da53f0fffaba9e80cb742b5c Change the "nobody" gid to of -2 "short" (not int)... --- diff --git a/src/org/cacert/gigi/Launcher.java b/src/org/cacert/gigi/Launcher.java index f8c7f783..6c234909 100644 --- a/src/org/cacert/gigi/Launcher.java +++ b/src/org/cacert/gigi/Launcher.java @@ -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!"); } }