Pullup ticket 2989 - requested by taca
[pkgsrc.git] / sysutils / puppet / patches / patch-ae
1 $NetBSD: patch-ae,v 1.1 2010/02/04 16:22:02 taca Exp $
2
3 Fix for CVE-2009-3564.
4
5 --- lib/puppet/util.rb.orig     2010-02-03 01:16:24.000000000 +0000
6 +++ lib/puppet/util.rb
7 @@ -58,10 +58,11 @@ module Util
8              end
9              unless Puppet::Util::SUIDManager.uid == user
10                  begin
11 +                    Puppet::Util::SUIDManager.initgroups(user)
12                      Puppet::Util::SUIDManager.uid = user 
13                      Puppet::Util::SUIDManager.euid = user 
14 -                rescue
15 -                    $stderr.puts "could not change to user %s" % user
16 +                rescue => detail
17 +                    $stderr.puts "Could not change to user %s: %s" % [user, detail]
18                      exit(74)
19                  end
20              end