projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 90/06/19 19:22:39 by kfall
[unix-history]
/
usr
/
src
/
usr.bin
/
login
/
login.c
diff --git
a/usr/src/usr.bin/login/login.c
b/usr/src/usr.bin/login/login.c
index
73a0b82
..
5c72828
100644
(file)
--- 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
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)login.c 5.5
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)login.c 5.5
5
(Berkeley) %G%";
#endif /* not lint */
/*
#endif /* not lint */
/*
@@
-108,6
+108,8
@@
main(argc, argv)
(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;
@@
-121,8
+123,6
@@
main(argc, argv)
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();