Date: Sat, 15 Sep 2001 19:43:31 +0200 From: "Spider" <spider@ffm.lublin.pl> To: <freebsd-stable@FreeBSD.org> Subject: Bug w /usr/bin/login Message-ID: <009401c13e0d$f042ef60$0200a8c0@spider>
index | next in thread | raw e-mail
Bug w /usr/bin/login
Patch Przemyslawa Frasunka
--- usr.bin/login/login.c.old Sat Sep 15 16:20:55 2001
+++ usr.bin/login/login.c Sat Sep 15 16:21:21 2001
@@ -404,14 +404,15 @@
*/
lc = login_getpwclass(pwd);
- /* if user not super-user, check for disabled logins */
- if (!rootlogin)
- auth_checknologin(lc);
-
quietlog = login_getcapbool(lc, "hushlogin", 0);
/* Switching needed for NFS with root access disabled */
(void)setegid(pwd->pw_gid);
(void)seteuid(rootlogin ? 0 : pwd->pw_uid);
+
+ /* if user not super-user, check for disabled logins */
+ if (!rootlogin)
+ auth_checknologin(lc);
+
if (!*pwd->pw_dir || chdir(pwd->pw_dir) < 0) {
if (login_getcapbool(lc, "requirehome", 0))
refused("Home directory not available", "HOMEDIR", 1);
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009401c13e0d$f042ef60$0200a8c0>
