Your message dated Tue, 25 Oct 2005 12:15:55 +0200
with message-id <[EMAIL PROTECTED]>
and subject line [Aide-devel] [Debian minor issue #143495] Bug#143495: aide: 
should output errors on stderr
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Apr 2002 18:56:35 +0000
>From [EMAIL PROTECTED] Thu Apr 18 13:56:35 2002
Return-path: <[EMAIL PROTECTED]>
Received: from 212186010174.11.tuwien.teleweb.at (hoss.orcus.priv.at) 
[212.186.10.174] 
        by master.debian.org with esmtp (Exim 3.12 1 (Debian))
        id 16yH57-0004Z5-00; Thu, 18 Apr 2002 13:56:34 -0500
Received: by hoss.orcus.priv.at (Postfix, from userid 1000)
        id 4D037163CC; Thu, 18 Apr 2002 20:56:26 +0200 (CEST)
To: [EMAIL PROTECTED]
Subject: aide: should output errors on stderr
X-Attribution: Robbe
From: Robert Bihlmeyer <[EMAIL PROTECTED]>
Date: 18 Apr 2002 20:55:27 +0200
Message-ID: <[EMAIL PROTECTED]>
Lines: 19
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: [EMAIL PROTECTED]

Package: aide
Severity: minor
Version: 0.7-11

After experiencing db corruption I got the following in the report mail:

  Output of the daily AIDE run:
  Not enough parameters in db:12879. Trying to continue.
  Newline exptexted in database. Readin until end of line
  Skipped value 0
  db_char2line():Error while reading database
  AIDE produced no errors.

Looks a bit strange to tell me there are no errors. As it seems this
stems from aide not properly outputting errors to stderr, but to
stdout instead.

-- 
Robbe

---------------------------------------
Received: (at 143495-done) by bugs.debian.org; 25 Oct 2005 10:15:58 +0000
>From [EMAIL PROTECTED] Tue Oct 25 03:15:58 2005
Return-path: <[EMAIL PROTECTED]>
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de (torres.zugschlus.de) 
[217.151.83.1] (Debian-exim)
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EULqY-0008T9-00; Tue, 25 Oct 2005 03:15:58 -0700
Received: from mh by torres.zugschlus.de with local (Exim 4.54)
        id 1EULqV-0002b1-GM; Tue, 25 Oct 2005 12:15:55 +0200
Date: Tue, 25 Oct 2005 12:15:55 +0200
From: Marc Haber <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [Aide-devel] [Debian minor issue #143495] Bug#143495: aide: should 
output errors on stderr
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Version: 0.10-6.1

Hi Richard,

On Mon, Oct 24, 2005 at 03:36:04PM +0200, Richard van den Berg wrote:
> I did not find the string "no errors" in the current source code. So
> aide will not report that there are no errors, even if that statement
> would be true.

Yes, that "no errors" comes from our cron job and is printed if aide
exited with a zero exit code _AND_ didn't have any stderr output.

The real issue is that aide exists with a zero exit code even if the
database was corrupted, and that the error message indicating database
corruption is printed to stdout instead of stderr, which makes it
pretty hard to detect from the calling script whether there has been a
serious problem with aide itself.

Current aide seems to correctly issue a non-zero exit code, so this
bug is kind of fixed in aide 0.10.

Do you plan to better seperate stdout and stderr in the future?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to