From 6b586d2e2f309b7779945b626cf349adaf1f8f98 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 28 Oct 2012 02:11:08 +0000 Subject: [PATCH] UID/GID changing in the correct order? --- server/kiwi.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/kiwi.js b/server/kiwi.js index 134894a..9784930 100755 --- a/server/kiwi.js +++ b/server/kiwi.js @@ -64,11 +64,11 @@ _.each(config.get().servers, function (server) { process.title = 'kiwiirc'; // Change UID/GID -if ((config.get().user) && (config.get().user !== '')) { - process.setuid(config.user); -} if ((config.get().group) && (config.get().group !== '')) { - process.setgid(config.group); + process.setgid(config.get().group); +} +if ((config.get().user) && (config.get().user !== '')) { + process.setuid(config.get().user); } -- 2.25.1