cvsserver: Use exit 1 instead of die when req_Root fails.
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>
This commit is contained in:
parent
cd8ae20195
commit
2a4b5d5a07
@ -145,8 +145,10 @@ if ($state->{method} eq 'pserver') {
|
||||
}
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user