]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 366624: testserver.pl fails to find the GID for the httpd process - Patch by...
authorlpsolit%gmail.com <>
Fri, 12 Jan 2007 05:26:48 +0000 (05:26 +0000)
committerlpsolit%gmail.com <>
Fri, 12 Jan 2007 05:26:48 +0000 (05:26 +0000)
testserver.pl

index 9c12b9573311e5833de97d81a907e84f16d9f5ca..af4ba67e75395560b568aec65f42713ee5cae01b 100755 (executable)
 use strict;
 use lib ".";
 
-use Bugzilla;
+BEGIN {
+    my $envpath = $ENV{'PATH'};
+    require Bugzilla;
+    # $ENV{'PATH'} is required by the 'ps' command to run correctly.
+    $ENV{'PATH'} = $envpath;
+}
+
 use Bugzilla::Constants;
 
 use Socket;