Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2006 06:35:16 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 91493 for review
Message-ID:  <200602100635.k1A6ZGrQ080892@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91493

Change 91493 by csjp@csjp_xor on 2006/02/10 06:34:52

	It is alright to use err(3) instead of errx(3) here, as auditon(2) will set
	errno when it fails

Affected files ...

.. //depot/projects/trustedbsd/audit3/usr.bin/login/login_audit.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/usr.bin/login/login_audit.c#10 (text+ko) ====

@@ -72,7 +72,7 @@
  	if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) {
 		if (errno == ENOSYS)
 			return;
-		errx(1, "login: Could not determine audit condition");
+		err(1, "login: Could not determine audit condition");
 	}
 	if (au_cond == AUC_NOAUDIT)
 		return;
@@ -125,7 +125,7 @@
  	if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) {
 		if (errno == ENOSYS)
 			return;
-		errx(1, "login: Could not determine audit condition");
+		err(1, "login: Could not determine audit condition");
 	}
 	if (au_cond == AUC_NOAUDIT)
 		return;



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