Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/su Do not use pamh after pam_end. It's cosmetic chan...
details: https://anonhg.NetBSD.org/src/rev/005773943679
branches: trunk
changeset: 339770:005773943679
user: shm <shm%NetBSD.org@localhost>
date: Sun Aug 09 09:39:21 2015 +0000
description:
Do not use pamh after pam_end. It's cosmetic change since pam_strerror
ignores that parameter.
diffstat:
usr.bin/su/su_pam.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0662f9b6a2d4 -r 005773943679 usr.bin/su/su_pam.c
--- a/usr.bin/su/su_pam.c Sun Aug 09 07:40:59 2015 +0000
+++ b/usr.bin/su/su_pam.c Sun Aug 09 09:39:21 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: su_pam.c,v 1.19 2013/06/29 05:08:35 mlelstv Exp $ */
+/* $NetBSD: su_pam.c,v 1.20 2015/08/09 09:39:21 shm Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";*/
#else
-__RCSID("$NetBSD: su_pam.c,v 1.19 2013/06/29 05:08:35 mlelstv Exp $");
+__RCSID("$NetBSD: su_pam.c,v 1.20 2015/08/09 09:39:21 shm Exp $");
#endif
#endif /* not lint */
@@ -253,7 +253,7 @@
syslog(LOG_WARNING, "BAD SU %s to %s%s: %s",
username, user, ontty(), safe_pam_strerror(pamh, pam_err));
(void)pam_end(pamh, pam_err);
- errx(EXIT_FAILURE, "Sorry: %s", safe_pam_strerror(pamh, pam_err));
+ errx(EXIT_FAILURE, "Sorry: %s", safe_pam_strerror(NULL, pam_err));
}
/*
Home |
Main Index |
Thread Index |
Old Index