I've simply reposted Lubomir Rintel's patch from the bug report. Not
claiming credit, but we've been running with this here against 0.25.x,
and it's been immensely useful for debugging.



On Thu, Sep 30, 2010 at 4:46 PM, Nigel Kersten <[email protected]> wrote:
>
> Signed-off-by: Nigel Kersten <[email protected]>
> ---
>  lib/puppet/util/suidmanager.rb |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/puppet/util/suidmanager.rb b/lib/puppet/util/suidmanager.rb
> index 4d2c322..6633de0 100644
> --- a/lib/puppet/util/suidmanager.rb
> +++ b/lib/puppet/util/suidmanager.rb
> @@ -88,7 +88,7 @@ module Puppet::Util::SUIDManager
>   module_function :initgroups
>
>   def run_and_capture(command, new_uid=nil, new_gid=nil)
> -    output = Puppet::Util.execute(command, :failonfail => false, :uid => 
> new_uid, :gid => new_gid)
> +    output = Puppet::Util.execute(command, :failonfail => false, :combine => 
> true, :uid => new_uid, :gid => new_gid)
>     [output, $CHILD_STATUS.dup]
>   end
>   module_function :run_and_capture
> --
> 1.7.2.3
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-dev?hl=en.
>
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to