aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-27 01:23:57 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-03-27 01:23:57 +0100
commitb8a6e7339f3f200b3a25867a658e0d6aa18b01d4 (patch)
treebe3889f6f899bbc2c894b67deb38072e521d181b
parentbb0ab83b5a10b0ff812484df11667765f43ecd44 (diff)
Fix space damage.
-rwxr-xr-xcli/icevault6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/icevault b/cli/icevault
index 992ee6a..cc95729 100755
--- a/cli/icevault
+++ b/cli/icevault
@@ -470,10 +470,10 @@ sub guessPasswordPage(@) {
}
}
else {
- if ($pw1->{value} eq $pw2->{value}) {
+ if ($pw1->{value} eq $pw2->{value}) {
($idx0, $idx1, $idx2) = (0, 1, 2);
}
- elsif ($pw0->{value} eq $pw1->{value}) {
+ elsif ($pw0->{value} eq $pw1->{value}) {
($idx0, $idx1, $idx2) = (2, 0, 1);
}
elsif ($pw0->{value} eq $pw2->{value}) {
@@ -541,7 +541,7 @@ sub promptYN($;$) {
# Get the SHA-256 digest of the given file.
sub sha256_file($) {
my $filename = shift;
-
+
require 'Digest.pm';
my $sha256 = Digest->new('SHA-256');
open my $fh, '<', $filename or error "Can't open C<%s>: %s", $filename, $!;