lib/mongrel/configurator.rb in mongrel-1.0.2 vs lib/mongrel/configurator.rb in mongrel-1.0.3
- old
+ new
@@ -58,10 +58,10 @@
target_uid = Etc.getpwnam(user).uid if user
target_gid = Etc.getgrnam(group).gid if group
if uid != target_uid or gid != target_gid
log "Initiating groups for #{user.inspect}:#{group.inspect}."
- Process.initgroups(user, target_id)
+ Process.initgroups(user, target_gid)
log "Changing group to #{group.inspect}."
Process::GID.change_privilege(target_gid)
log "Changing user to #{user.inspect}."