version 1.12, 2002/02/16 21:27:59 |
version 1.13, 2003/04/07 21:14:28 |
|
|
/* well, at least we know what the tty is */ |
/* well, at least we know what the tty is */ |
(void)strncpy(usr.ut_line, p, UT_LINESIZE); |
(void)strncpy(usr.ut_line, p, UT_LINESIZE); |
} else |
} else |
(void)strcpy(usr.ut_line, "tty??"); |
(void)strncpy(usr.ut_line, "tty??", UT_LINESIZE); |
|
|
pw = getpwuid(getuid()); |
pw = getpwuid(getuid()); |
(void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE); |
(void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE); |