Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2018 17:10:35 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335287 - head/contrib/openbsm/bin/praudit
Message-ID:  <201806171710.w5HHAZmI011936@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Sun Jun 17 17:10:35 2018
New Revision: 335287
URL: https://svnweb.freebsd.org/changeset/base/335287

Log:
  praudit(1): return 0 on success
  
  Cherry pick https://github.com/openbsm/openbsm/commit/ed83bb3
  
  Submitted by:	aniketp
  Reviewed by:	rwatson, 0mp
  Obtained from:	OpenBSM
  MFC after:	2 weeks
  Sponsored by:	Google, Inc. (GSoC 2018)
  Pull Request:	https://github.com/openbsm/openbsm/pull/32

Modified:
  head/contrib/openbsm/bin/praudit/praudit.1
  head/contrib/openbsm/bin/praudit/praudit.c

Modified: head/contrib/openbsm/bin/praudit/praudit.1
==============================================================================
--- head/contrib/openbsm/bin/praudit/praudit.1	Sun Jun 17 16:30:06 2018	(r335286)
+++ head/contrib/openbsm/bin/praudit/praudit.1	Sun Jun 17 17:10:35 2018	(r335287)
@@ -25,7 +25,7 @@
 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd August 4, 2009
+.Dd June 11, 2018
 .Dt PRAUDIT 1
 .Os
 .Sh NAME
@@ -88,6 +88,8 @@ Events are displayed as per their descriptions given i
 .Pa /etc/security/audit_event ;
 UIDs and GIDs are expanded to their names;
 dates and times are displayed in human-readable format.
+.Sh EXIT STATUS
+.Ex -std
 .Sh FILES
 .Bl -tag -width ".Pa /etc/security/audit_control" -compact
 .It Pa /etc/security/audit_class

Modified: head/contrib/openbsm/bin/praudit/praudit.c
==============================================================================
--- head/contrib/openbsm/bin/praudit/praudit.c	Sun Jun 17 16:30:06 2018	(r335286)
+++ head/contrib/openbsm/bin/praudit/praudit.c	Sun Jun 17 17:10:35 2018	(r335287)
@@ -233,5 +233,5 @@ main(int argc, char **argv)
 	if (oflags & AU_OFLAG_XML)
 		au_print_xml_footer(stdout);
 
-	return (1);
+	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806171710.w5HHAZmI011936>