Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/lib/libpam/modules/pam_nologin Pull up following revision...
details: https://anonhg.NetBSD.org/src/rev/eb0219db1fd3
branches: netbsd-3
changeset: 577845:eb0219db1fd3
user: tron <tron%NetBSD.org@localhost>
date: Mon Feb 20 13:45:50 2006 +0000
description:
Pull up following revision(s) (requested by bouyer in ticket #1176):
lib/libpam/modules/pam_nologin/pam_nologin.c: revision 1.6
Use the class of the user, not then default class, when checking for
nologin and ignorelogin login.conf(5) capabilities.
diffstat:
lib/libpam/modules/pam_nologin/pam_nologin.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 414617f2f308 -r eb0219db1fd3 lib/libpam/modules/pam_nologin/pam_nologin.c
--- a/lib/libpam/modules/pam_nologin/pam_nologin.c Mon Feb 20 13:43:57 2006 +0000
+++ b/lib/libpam/modules/pam_nologin/pam_nologin.c Mon Feb 20 13:45:50 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pam_nologin.c,v 1.3.2.2 2005/07/11 11:19:40 tron Exp $ */
+/* $NetBSD: pam_nologin.c,v 1.3.2.3 2006/02/20 13:45:50 tron Exp $ */
/*-
* Copyright 2001 Mark R V Murray
@@ -40,7 +40,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_nologin/pam_nologin.c,v 1.10 2002/04/12 22:27:21 des Exp $");
#else
-__RCSID("$NetBSD: pam_nologin.c,v 1.3.2.2 2005/07/11 11:19:40 tron Exp $");
+__RCSID("$NetBSD: pam_nologin.c,v 1.3.2.3 2006/02/20 13:45:50 tron Exp $");
#endif
@@ -100,7 +100,7 @@
rootlogin = 1;
}
- lc = login_getclass(NULL);
+ lc = login_getclass(pwd->pw_class);
ignorenologin = login_getcapbool(lc, "ignorenologin", rootlogin);
nologin = login_getcapstr(lc, "nologin", nologin_def, nologin_def);
login_close(lc);
Home |
Main Index |
Thread Index |
Old Index