Small bugs in ask_expire() in keygen.c (Patch included)

Francis J. Lacoste "francis.lacoste" at iNsu.COM
Wed Sep 1 02:04:31 CEST 1999


Hi,

There is a small bugs in the function ask_expire in the file
keygen.c.

It doesn't correctly handle runnign under shared memory
coprocess.

The fix is as simple as :

--- gnupg-0.9.10/g10/keygen.c.cpr	Wed Sep  1 00:52:06 1999
+++ gnupg-0.9.10/g10/keygen.c	Wed Sep  1 00:52:58 1999
@@ -559,8 +559,8 @@
 			asctimestamp(curtime + interval ) );
 	}

-	if( !cpr_enabled()
-	     && cpr_get_answer_is_yes("keygen.valid.okay",
+	if( cpr_enabled()
+	     || cpr_get_answer_is_yes("keygen.valid.okay",
 				       _("Is this correct (y/n)? ")) )
 	    break;
     }


Thanks for your work !

-- 
Francis J. Lacoste		     iNsu Innovations Inc.	
Vice-Président développement 	      Tél.: (514) 336-5544
francis.lacoste at iNsu.COM	      Fax.: (514) 336-8128



More information about the Gnupg-devel mailing list