GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Fix mistake.
Hongli Lai (Phusion (author)
Sat May 17 13:11:03 -0700 2008
commit  f3511b1c396c079ca9e51f01168f5fc7053c97ed
tree    52f86e406ae0ea932dfab720857552e66222c8b9
parent  f4e4e229fc0266b57e13b2116cf89e1a1ca4ee6b
...
229
230
231
232
 
 
 
 
233
234
235
...
229
230
231
 
232
233
234
235
236
237
238
0
@@ -229,7 +229,10 @@ private
0
       # Some systems are broken. initgroups can fail because of
0
       # all kinds of stupid reasons. So we ignore any errors
0
       # raised by initgroups.
0
- Process.groups = Process.initgroups(username, gid) rescue nil
0
+ begin
0
+ Process.groups = Process.initgroups(username, gid)
0
+ rescue
0
+ end
0
       Process::Sys.setgid(gid)
0
       Process::Sys.setuid(uid)
0
       return true

Comments

    No one has commented yet.