Module Name:    src
Committed By:   agc
Date:           Thu Nov  4 16:24:22 UTC 2010

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: validate.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 \
    src/crypto/external/bsd/netpgp/dist/src/lib/validate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/netpgp/dist/src/lib/validate.c
diff -u src/crypto/external/bsd/netpgp/dist/src/lib/validate.c:1.40 src/crypto/external/bsd/netpgp/dist/src/lib/validate.c:1.41
--- src/crypto/external/bsd/netpgp/dist/src/lib/validate.c:1.40	Thu Nov  4 16:13:35 2010
+++ src/crypto/external/bsd/netpgp/dist/src/lib/validate.c	Thu Nov  4 16:24:22 2010
@@ -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 @@
 			    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();

Reply via email to