Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpam/modules/pam_ksu Remove tautological check.
details: https://anonhg.NetBSD.org/src/rev/c979693c1d9b
branches: trunk
changeset: 327116:c979693c1d9b
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 27 18:09:38 2014 +0000
description:
Remove tautological check.
diffstat:
lib/libpam/modules/pam_ksu/pam_ksu.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 66a9ded064e6 -r c979693c1d9b lib/libpam/modules/pam_ksu/pam_ksu.c
--- a/lib/libpam/modules/pam_ksu/pam_ksu.c Thu Feb 27 18:09:18 2014 +0000
+++ b/lib/libpam/modules/pam_ksu/pam_ksu.c Thu Feb 27 18:09:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pam_ksu.c,v 1.8 2013/12/29 22:54:58 christos Exp $ */
+/* $NetBSD: pam_ksu.c,v 1.9 2014/02/27 18:09:38 joerg Exp $ */
/*-
* Copyright (c) 2002 Jacques A. Vidrine <nectar%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_ksu/pam_ksu.c,v 1.5 2004/02/10 10:13:21 des Exp $");
#else
-__RCSID("$NetBSD: pam_ksu.c,v 1.8 2013/12/29 22:54:58 christos Exp $");
+__RCSID("$NetBSD: pam_ksu.c,v 1.9 2014/02/27 18:09:38 joerg Exp $");
#endif
#include <sys/param.h>
@@ -139,8 +139,6 @@
su_principal_name);
else
(void)snprintf(prompt, sizeof(prompt), "Password:");
- if (prompt == NULL)
- return (PAM_BUF_ERR);
pass = NULL;
pamret = pam_get_authtok(pamh, PAM_AUTHTOK, &pass, prompt);
if (pamret != PAM_SUCCESS)
Home |
Main Index |
Thread Index |
Old Index