projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c08717d
)
UID/GID changing in the correct order?
author
Darren
<darren@darrenwhitlen.com>
Sun, 28 Oct 2012 02:11:08 +0000
(
02:11
+0000)
committer
Darren
<darren@darrenwhitlen.com>
Sun, 28 Oct 2012 02:11:08 +0000
(
02:11
+0000)
server/kiwi.js
patch
|
blob
|
blame
|
history
diff --git
a/server/kiwi.js
b/server/kiwi.js
index 134894aeab38162faf9b6421a4bda562a56fba21..97849302b23ac23c12a49bd7cfb30af480a81889 100755
(executable)
--- 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);
}