Re: cryptsetup-1.0.6-pre2

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

 



On Sat, 01 Mar 2008 22:39:47 +0100
Clemens Fruhwirth wrote:

> ...
> New Features:
> * Add key-slot patch for luksAddkey courtesy of Marc MERLIN <marc@xxxxxxxxxxx>

Piece of the old code was forgotten in logger() call, thanks for 
GCC warnings about uninitialized variables.

Patch attached.

-- 
Best regards,
Nikolay Fetisov
Fix wrong usage of 'i' as a key slot number

--- lib/setup.c.orig	2008-03-02 11:58:52 +0300
+++ lib/setup.c	2008-03-02 12:30:49 +0300
@@ -586,7 +586,7 @@
 	        options->icb->log(CRYPT_LOG_ERROR,"No key available with this passphrase.\n");
 		r = -EPERM; goto out;
 	} else
-	        logger(options, CRYPT_LOG_NORMAL,"key slot %d unlocked.\n",i);
+	        logger(options, CRYPT_LOG_NORMAL,"key slot %d unlocked.\n",r);
 
 	safe_free(password);
 	

Attachment: signature.asc
Description: PGP signature


[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