Apply the patch from Peter Pentchev in PR 44041

``When netpgp thinks (even for a little while, even if it
	should change its mind almost immediately) that it's
	processing a detached signature, it sends a message to that
	effect to io->outs.
	This kind of interferes with "netpgp --cat" :)''

Use io->errs instead of io->outs for the informational message.
This commit is contained in:
agc 2010-11-04 16:24:22 +00:00
parent d22b8667a6
commit 9b9aeb8d81

View File

@ -54,7 +54,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: validate.c,v 1.40 2010/11/04 16:13:35 agc Exp $");
__RCSID("$NetBSD: validate.c,v 1.41 2010/11/04 16:24:22 agc Exp $");
#endif
#include <sys/types.h>
@ -508,7 +508,7 @@ validate_data_cb(const __ops_packet_t *pkt, __ops_cbdata_t *cbinfo)
data->detachname) {
/* check we have seen some data */
/* if not, need to read from detached name */
(void) fprintf(io->outs,
(void) fprintf(io->errs,
"netpgp: assuming signed data in \"%s\"\n",
data->detachname);
data->mem = __ops_memory_new();