Skip to content

Commit

Permalink
cvsserver: Use exit 1 instead of die when req_Root fails.
Browse files Browse the repository at this point in the history
This was causing test failures because die was exiting 255.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Brian Gernhardt authored and Shawn O. Pearce committed Oct 18, 2007
1 parent cd8ae20 commit 2a4b5d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@
}
my $request = $1;
$line = <STDIN>; 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 = <STDIN>; chomp $line;
unless ($line eq 'anonymous') {
print "E Only anonymous user allowed via pserver\n";
Expand Down

0 comments on commit 2a4b5d5

Please sign in to comment.