["J.H.M. Dassen" <jdassen@wi.leidenuniv.nl>] Bug#26908: gnupg: Wrong exit code

Werner Koch wk at isil.d.shuttle.de
Tue Nov 10 10:14:21 CET 1998

James Troup <james at nocrew.org> writes:

> I've just looked at the source and it seems to me that there's no sane
> reason to pretend errors didn't occur if _not_ in batch mode, but
> rather the opposite.  Perhaps something like the following was meant?
> -	if( opt.batch && rc )
> +	if( !opt.batch && rc )
>  	    g10_exit(1);

This is intended; but I changed it, so that gpg returns with 1 if it
has seen at least one BAD (or untrusted) signature.

It will we in the next release or in the CVS in a couple of hours.


More information about the Gnupg-devel mailing list