[Pkg-shadow-commits] r1871 - debian/trunk/tests/common
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Wed Feb 27 00:27:18 UTC 2008
Author: nekral-guest
Date: 2008-02-27 00:27:18 +0000 (Wed, 27 Feb 2008)
New Revision: 1871
Modified:
debian/trunk/tests/common/compare_file.pl
Log:
Quote the salt because it may be an '*' and is expanded to filenames.
Modified: debian/trunk/tests/common/compare_file.pl
===================================================================
--- debian/trunk/tests/common/compare_file.pl 2008-02-27 00:02:18 UTC (rev 1870)
+++ debian/trunk/tests/common/compare_file.pl 2008-02-27 00:27:18 UTC (rev 1871)
@@ -17,7 +17,7 @@
$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"
More information about the Pkg-shadow-commits
mailing list