[Pkg-cryptsetup-devel] Re: Bug#344313

Mike Hokenson logan at dct.com
Sun Dec 25 18:40:33 UTC 2005


That fixes it for me also.

Thanks!

On Sunday, December 25, 2005 at 11:04AM, Bastian Blank wrote:
>tags 344313 patch
>thanks
>
>The attached patch fixes the problem.
>
>Bastian
>
>-- 
>The sight of death frightens them [Earthers].
>		-- Kras the Klingon, "Friday's Child", stardate 3497.2

>diff -urN cryptsetup-20050111.old/lib/libdevmapper.c cryptsetup-20050111/lib/libdevmapper.c
>--- cryptsetup-20050111.old/lib/libdevmapper.c	2004-06-03 16:33:44.000000000 +0200
>+++ cryptsetup-20050111/lib/libdevmapper.c	2005-12-25 10:54:38.000000000 +0100
>@@ -226,6 +226,11 @@
> 	if (!dm_task_get_info(dmt, &dmi))
> 		goto out;
> 
>+	if (!dmi.exists) {
>+		r = -ENODEV;
>+		goto out;
>+	}
>+
> 	next = dm_get_next_target(dmt, next, &start, &length,
> 	                          &target_type, &params);
> 	if (!target_type || strcmp(target_type, CRYPT_TARGET) != 0 ||






More information about the Pkg-cryptsetup-devel mailing list