From 3d28f6ddd8b2eff6dc5b11f48fd459954bac4fc3 Mon Sep 17 00:00:00 2001 From: Keith Sklower Date: Sat, 3 Feb 1990 05:40:39 -0800 Subject: [PATCH] change setlogname --> setlogin SCCS-vsn: usr.bin/login/login.c 5.49 --- usr/src/usr.bin/login/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/src/usr.bin/login/login.c b/usr/src/usr.bin/login/login.c index 85f77c0597..1af1b7063f 100644 --- a/usr/src/usr.bin/login/login.c +++ b/usr/src/usr.bin/login/login.c @@ -22,7 +22,7 @@ char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)login.c 5.48 (Berkeley) %G%"; +static char sccsid[] = "@(#)login.c 5.49 (Berkeley) %G%"; #endif /* not lint */ /* @@ -471,8 +471,8 @@ main(argc, argv) strcpy(tbuf + 1, (p = rindex(pwd->pw_shell, '/')) ? p + 1 : pwd->pw_shell); - if (setlogname(pwd->pw_name, strlen(pwd->pw_name)) < 0) - syslog(LOG_ERR, "setlogname() failure: %m"); + if (setlogin(pwd->pw_name) < 0) + syslog(LOG_ERR, "setlogin() failure: %m"); /* discard permissions last so can't get killed and drop core */ (void)setuid(pwd->pw_uid); -- 2.20.1