[PATCH] cryptsetup-luks: fix --tries option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

actually ask for passphrase multiple times when multiple tries are requested

Signed-off-by: Ludwig Nussel <ludwig.nussel@xxxxxxx>

Index: cryptsetup-luks-1.0.4_SVN26/lib/setup.c
===================================================================
--- cryptsetup-luks-1.0.4_SVN26.orig/lib/setup.c
+++ cryptsetup-luks-1.0.4_SVN26/lib/setup.c
@@ -640,6 +640,7 @@ start:
 		r = -EINVAL; goto out;
 	}
 	if((r = LUKS_open_any_key(options->device, password, passwordLen, &hdr, &mk, backend) < 0)) {
+		r = -EPERM;
 		set_error("No key available with this passphrase.\n");
 		goto out1;
 	}
-- 
 (o_   Ludwig Nussel
 //\   SUSE Labs
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)



---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux