From 7b5e7e92861ac7982cd8216b21d7b6f8cd4b2790 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Mon, 20 Apr 2020 12:30:57 +0200
Subject: [PATCH] Fixing compilation.
---
src/service/libc.cr | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/service/libc.cr b/src/service/libc.cr
index f8d8a94..d2437f1 100644
--- a/src/service/libc.cr
+++ b/src/service/libc.cr
@@ -31,13 +31,16 @@ module System
gid = passwd.pw_gid
r = LibC.initgroups user_name, passwd.pw_gid
- raise Errno.new "initgroups" if r != 0
+ # raise Errno.new "initgroups" if r != 0
+ raise Exception.new "initgroups" if r != 0
r = LibC.setgid gid
- raise Errno.new "setgid" if r != 0
+ # raise Errno.new "setgid" if r != 0
+ raise Exception.new "setgid" if r != 0
r = LibC.setuid uid
- raise Errno.new "setuid" if r != 0
+ # raise Errno.new "setuid" if r != 0
+ raise Exception.new "setuid" if r != 0
end
end