From: Brian Gernhardt Date: Wed, 17 Oct 2007 14:05:47 GMT Subject: [PATCH] Use exit 1 instead of die when req_Root fails. Message-ID: <20071017140547.GA21691@Hermes.cust.hotspot.t-mobile.com> This was causing test failures because die was exiting 255. Signed-off-by: Brian Gernhardt --- Shawn, I sent this in a couple weeks ago but it looks like it never made it into your repo. It fixes test failures on my machine that have been plauging me for months. git-cvsserver.perl | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 13dbd27..0d55fec 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -145,8 +145,10 @@ if ($state->{method} eq 'pserver') { } my $request = $1; $line = ; chomp $line; - req_Root('root', $line) # reuse Root - or die "E Invalid root $line \n"; + unless (req_Root('root', $line)) { # reuse Root + print "E Invalid root $line \n"; + exit 1; + } $line = ; chomp $line; unless ($line eq 'anonymous') { print "E Only anonymous user allowed via pserver\n"; -- 1.5.3.4.206.g0cef9