Commit 93f725a3 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

testlib/OpenSSL/Test.pm: keep default input private.



If $_ is not private, it can wipe caller's one, which proved to be
problematic...

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent d063add7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ sub run {
    # to make it easier to compare with a manual run of the command.
    if ($opts{capture} || defined($opts{prefix})) {
	my $pipe;
	local $_;

	open($pipe, '-|', "$prefix$cmd") or die "Can't start command: $!";
	while(<$pipe>) {