Morten Bjørnsvik via RT wrote:
Show quoted text> We have some SSL related tests that has to run as a specific user,group because of the certificate.
> Would be nice if that feature could be included in the constructor.
>
> aka:
> my $parser = TAP::Parser->new( { source => $file, user => $user, group => $group } );
Why does this need to be done inside TAP::Parser? Just do it yourself.
{
local $> = $user_id;
local $) = $group_id;
my $parser = TAP::Parser->new({ source => $file });
}
This assumes the process is run by a superuser, but otherwise how would
TAP::Parser run as a different user?
--
151. The proper way to report to my Commander is "Specialist Schwarz,
reporting as ordered, Sir" not "You can't prove a thing!"
-- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
http://skippyslist.com/list/