Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/login/login.c
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | (void)fprintf(stderr, "Login timed out after %d seconds\n", | ||||
timeout); | timeout); | ||||
bail(NO_SLEEP_EXIT, 0); | bail(NO_SLEEP_EXIT, 0); | ||||
} | } | ||||
sa.sa_handler = timedout; | sa.sa_handler = timedout; | ||||
(void)sigaction(SIGALRM, &sa, NULL); | (void)sigaction(SIGALRM, &sa, NULL); | ||||
(void)alarm(timeout); | (void)alarm(timeout); | ||||
(void)setpriority(PRIO_PROCESS, 0, 0); | (void)setpriority(PRIO_PROCESS, 0, 0); | ||||
openlog("login", 0, LOG_AUTH); | openlog("login", LOG_CONS, LOG_AUTH); | ||||
uid = getuid(); | uid = getuid(); | ||||
euid = geteuid(); | euid = geteuid(); | ||||
egid = getegid(); | egid = getegid(); | ||||
while ((ch = getopt(argc, argv, "fh:p")) != -1) | while ((ch = getopt(argc, argv, "fh:p")) != -1) | ||||
switch (ch) { | switch (ch) { | ||||
case 'f': | case 'f': | ||||
▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines |