changeset 3632:42a13dff2693

6490046 praudit's -l flag does not work as described.
author paulson
date Mon, 12 Feb 2007 04:43:25 -0800
parents ef02c98faebd
children cb7afcd33d84
files usr/src/cmd/praudit/token.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/praudit/token.c	Sun Feb 11 23:17:37 2007 -0800
+++ b/usr/src/cmd/praudit/token.c	Mon Feb 12 04:43:25 2007 -0800
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -788,7 +788,7 @@
 	}
 
 	if ((num == 0) && !(context->format & PRF_XMLM)) {
-		returnstat = pr_putchar(context, '\n');
+		returnstat = do_newline(context, 1);
 		if (returnstat < 0)
 			return (returnstat);
 	}
@@ -1834,8 +1834,7 @@
 	num = (int)n_groups;
 	if (num == 0) {
 		if (!(context->format & PRF_XMLM)) {
-			/* sigh, have to put out a '\n' */
-			returnstat = pr_putchar(context, '\n');
+			returnstat = do_newline(context, 1);
 		}
 		return (returnstat);
 	}