From 3a898db663103dac6ce30ef9143310f6daa8b6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 25 Nov 2013 05:42:47 +0100 Subject: [PATCH] backups: Prompt for password twice for verification --- qvm-tools/qvm-backup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qvm-tools/qvm-backup b/qvm-tools/qvm-backup index 108875eb..334f70fb 100755 --- a/qvm-tools/qvm-backup +++ b/qvm-tools/qvm-backup @@ -102,6 +102,10 @@ def main(): exit (0) passphrase = getpass.getpass("Please enter the pass phrase that will be used to encrypt/verify the backup: ") + passphrase2 = getpass.getpass("Enter again for verification: ") + if passphrase != passphrase2: + print >>sys.stderr, "ERROR: Password mismatch" + exit(1) try: backup_do(base_backup_dir, files_to_backup, passphrase,