Bug#639807: fetchmail: message Server certificate: should be written to stdout

2011-08-30 Thread Henry Jensen
Package: fetchmail
Version: 6.3.18-2
Severity: minor
Tags: patch

When using fetchmail in verbose SSL mode, fetchmail writes the message Server 
certificate: to stderr. 
Since this message is not an error (an it is not consistent with the ususal 
behaviour of fetchmail) it 
should be written to stdout instead. 

Since I run fetchmail crom a cronjob this behaviour becomes particular 
annoying, because cron is 
sending the output of stderr every time fetchmail runs.

Patch:

diff -urN fetchmail-6.3.18.orig//socket.c fetchmail-6.3.18//socket.c
--- fetchmail-6.3.18.orig//socket.c 2010-10-09 10:26:22.0 +0200
+++ fetchmail-6.3.18//socket.c  2011-08-30 14:15:50.0 +0200
@@ -618,7 +618,7 @@

if (outlevel = O_VERBOSE) {
if (depth == 0  SSLverbose)
-   report(stderr, GT_(Server certificate:\n));
+   report(stdout, GT_(Server certificate:\n));
else {
if (_firstrun) {
_firstrun = 0;


-- System Information:
Debian Release: 6.0.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fetchmail depends on:
ii  adduser 3.112+nmu2   add and remove users and groups
ii  debianutils 3.4  Miscellaneous utilities specific t
ii  libc6   2.11.2-10Embedded GNU C Library: Shared lib
ii  libcomerr2  1.41.12-4stable1 common error description library
ii  libgssapi-krb5-21.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - k
ii  libkrb5-3   1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries
ii  libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries
ii  lsb-base3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip

Versions of packages fetchmail recommends:
ii  ca-certificates20090814+nmu2 Common CA certificates

Versions of packages fetchmail suggests:
ii  exim4-daemon-heavy [mail 4.72-6+squeeze2 Exim MTA (v4) daemon with extended
pn  fetchmailconfnone  (no description available)
pn  resolvconf   none  (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#639807: [pkg-fetchmail-maint] Bug#639807: fetchmail: message Server certificate: should be written to stdout

2011-08-30 Thread Nico Golde
Hi,
* Henry Jensen hjen...@gmx.de [2011-08-30 15:57]:
 When using fetchmail in verbose SSL mode, fetchmail writes the message 
 Server certificate: to stderr. 
 Since this message is not an error (an it is not consistent with the ususal 
 behaviour of fetchmail) it 
 should be written to stdout instead. 
 
 Since I run fetchmail crom a cronjob this behaviour becomes particular 
 annoying, because cron is 
 sending the output of stderr every time fetchmail runs.
 
 Patch:
 
 diff -urN fetchmail-6.3.18.orig//socket.c fetchmail-6.3.18//socket.c
 --- fetchmail-6.3.18.orig//socket.c 2010-10-09 10:26:22.0 +0200
 +++ fetchmail-6.3.18//socket.c  2011-08-30 14:15:50.0 +0200
 @@ -618,7 +618,7 @@
 
 if (outlevel = O_VERBOSE) {
 if (depth == 0  SSLverbose)
 -   report(stderr, GT_(Server certificate:\n));
 +   report(stdout, GT_(Server certificate:\n));
 else {
 if (_firstrun) {
 _firstrun = 0;
 
 

Makes sense to me, Matthias, can you include this patch for the next release?

Cheers
Nico
-- 
Nico Golde - http://www.ngolde.de - n...@jabber.ccc.de - GPG: 0xA0A0
For security reasons, all text in this mail is double-rot13 encrypted.


pgpqGf9AOTSV5.pgp
Description: PGP signature