From 57d3f9fa83d8805a7d65953f08895244f8c70980 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Wed, 27 Feb 2008 00:27:18 +0000 Subject: [PATCH] Quote the salt because it may be an '*' and is expanded to filenames. --- tests/common/compare_file.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/compare_file.pl b/tests/common/compare_file.pl index 4e3a5698..e4a6142d 100755 --- a/tests/common/compare_file.pl +++ b/tests/common/compare_file.pl @@ -17,7 +17,7 @@ while ($tmp =~ m/^(.*?)([^\n]*):\@PASS_DES ([^:]*)\@:(.*)$/s) { $file =~ s/^$user:([^:]*):(.*)$/$user:\@PASS_DES $pass\@:$2/m; my $cryptpass = $1; # Check the password - my $checkpass = qx|/usr/bin/openssl passwd -crypt -salt $cryptpass $pass|; + my $checkpass = qx|/usr/bin/openssl passwd -crypt -salt '$cryptpass' $pass|; chomp $checkpass; die "Wrong password: '$cryptpass'. Expected password: '$checkpass'\n"