[Rt-devel] [PATCH] Logic bug in bin/fastcgi_server; allow use of --port.

Tom Lanyon tom at netspot.com.au
Fri Aug 27 07:28:07 EDT 2010


Patch below (against 3.8-trunk) fixes bin/fastcgi_server --port <foo>.
Without this, it always listens on $RT::VarPath/fastcgi.sock.

Regards,
Tom


---
 bin/fastcgi_server.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bin/fastcgi_server.in b/bin/fastcgi_server.in
index bf3fdcc..63df548 100644
--- a/bin/fastcgi_server.in
+++ b/bin/fastcgi_server.in
@@ -198,7 +198,7 @@ $ENV{'RT_WEBMUX_HEAVY_LOAD'} = 1;
 use File::Basename;
 require (dirname(__FILE__) .'/webmux.pl');
 
-unless ( $opt{'socket'} && $opt{'port'} ) {
+unless ( $opt{'socket'} || $opt{'port'} ) {
     require File::Spec;
     $opt{'socket'} = File::Spec->catfile($RT::VarPath, 'fastcgi.sock');
 }
-- 
1.7.2.1



More information about the rt-devel mailing list