public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: auparse question
Date: Wed, 31 Aug 2011 12:49:05 -0400	[thread overview]
Message-ID: <201108311249.05681.sgrubb@redhat.com> (raw)
In-Reply-To: <1314738737.2034.77.camel@lcb>

On Tuesday, August 30, 2011 05:12:17 PM LC Bruzenak wrote:
> I'm using auparse_get_field_type from the parse lib.
> The return value for error is "0" which is also that of the AUDIT_PID
> field.
> 
> Right? I am getting some errors that thought they were PIDs.

That does seem to be a mistake in the API. As a workaround for this, you can check for 
an error with auparse_get_record_text() == NULL. I suppose I could fix the problem 
going forward by making auparse_get_type() return -1 on error.

-Steve

  parent reply	other threads:[~2011-08-31 16:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 21:12 auparse question LC Bruzenak
2011-08-30 23:18 ` Miloslav Trmac
2011-08-31 18:29   ` Steve Grubb
2011-08-31 16:49 ` Steve Grubb [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-31 18:07 LC Bruzenak
2011-08-30 21:09 LC Bruzenak
2008-06-06 19:20 LC Bruzenak
2008-06-06 19:36 ` Miloslav Trmač
2008-06-06 19:53   ` LC Bruzenak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108311249.05681.sgrubb@redhat.com \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox