Fixing compilation.
This commit is contained in:
parent
2c33b29f5d
commit
7b5e7e9286
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user