diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-27 01:23:57 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-29 06:23:10 +0200 |
commit | 581c78256e4f31a08b25d0ee5e7096c7048b73ef (patch) | |
tree | e80a0592b71a4f640a5e83f9e3b776f47943362e | |
parent | 797100f4cee047431b049c6367544854d106fac9 (diff) |
Fix space damage.
-rwxr-xr-x | cli/icevault | 6 |
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, $!; |