From: Thomas Roessler Date: Thu, 29 Mar 2001 11:23:05 +0000 (+0000) Subject: Adding a dprint statement. X-Git-Tag: mutt-1-3-18-rel~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9df7ebdbecbc25f6ca68d5d80d64a24416eab05d;p=mutt Adding a dprint statement. --- diff --git a/pgp.c b/pgp.c index 40773696..b78f214b 100644 --- a/pgp.c +++ b/pgp.c @@ -666,7 +666,8 @@ static int pgp_verify_one (BODY *sigbdy, STATE *s, const char *tempfile) FILE *fp, *pgpout, *pgperr; pid_t thepid; int badsig = -1; - + int rv; + snprintf (sigfile, sizeof (sigfile), "%s.asc", tempfile); if(!(fp = safe_fopen (sigfile, "w"))) @@ -703,8 +704,10 @@ static int pgp_verify_one (BODY *sigbdy, STATE *s, const char *tempfile) mutt_copy_stream (pgperr, s->fpout); safe_fclose (&pgperr); - if (mutt_wait_filter (thepid)) + if ((rv = mutt_wait_filter (thepid))) badsig = -1; + + dprint (1, (debugfile, "pgp_verify_one: mutt_wait_filter returned %d.\n", rv)); } state_puts (_("[-- End of PGP output --]\n\n"), s);