[Bps-public-commit] r15876 - Pushmi/trunk/lib/Pushmi/Apache

clkao at bestpractical.com clkao at bestpractical.com
Tue Sep 9 13:57:52 EDT 2008


Author: clkao
Date: Tue Sep  9 13:57:51 2008
New Revision: 15876

Modified:
   Pushmi/trunk/lib/Pushmi/Apache/RelayProvider.pm

Log:
%ENV has to be reassigned to be avail to system()'ed child.

Modified: Pushmi/trunk/lib/Pushmi/Apache/RelayProvider.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Apache/RelayProvider.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Apache/RelayProvider.pm	Tue Sep  9 13:57:51 2008
@@ -26,6 +26,9 @@
 
         $ENV{PUSHMI_CONFIG} = $config;
 
+        # XXX: for some reasons %ENV are not bypassed across system
+        # unless we reassign it.
+        local $ENV{JIFTY_APP_ROOT} = $ENV{JIFTY_APP_ROOT};
         # XXX: use stdin or setproctitle
         # XXX: log $!
         system(   "$pushmi tryauth $repospath '"



More information about the Bps-public-commit mailing list