SCCS-vsn: usr.bin/login/login.c 5.55
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)login.c 5.54 (Berkeley) %G%";
+static char sccsid[] = "@(#)login.c 5.55 (Berkeley) %G%";
(void)signal(SIGINT, SIG_IGN);
(void)setpriority(PRIO_PROCESS, 0, 0);
(void)signal(SIGINT, SIG_IGN);
(void)setpriority(PRIO_PROCESS, 0, 0);
+ openlog("login", LOG_ODELAY, LOG_AUTH);
+
/*
* -p is used by getty to tell login not to destroy the environment
* -r is used by rlogind to cause the autologin protocol;
/*
* -p is used by getty to tell login not to destroy the environment
* -r is used by rlogind to cause the autologin protocol;
else
domain = index(localhost, '.');
else
domain = index(localhost, '.');
- openlog("login", LOG_ODELAY, LOG_AUTH);
-
fflag = hflag = pflag = rflag = 0;
passwd_req = 1;
uid = getuid();
fflag = hflag = pflag = rflag = 0;
passwd_req = 1;
uid = getuid();