Lines Matching refs:username
320 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >= in login_get_lastlog()
321 sizeof(li->username)) { in login_get_lastlog()
324 (unsigned long)sizeof(li->username) - 1); in login_get_lastlog()
345 logininfo *login_alloc_entry(pid_t pid, const char *username, in login_alloc_entry() argument
351 login_init_entry(newli, pid, username, hostname, line); in login_alloc_entry()
373 login_init_entry(struct logininfo *li, pid_t pid, const char *username, in login_init_entry() argument
386 if (username) { in login_init_entry()
387 strlcpy(li->username, username, sizeof(li->username)); in login_init_entry()
388 pw = getpwnam(li->username); in login_init_entry()
391 li->username); in login_init_entry()
472 !sys_auth_record_login(li->username,li->hostname,li->line, in login_write()
474 logit("Writing login record failed for %s", li->username); in login_write()
694 strncpy(ut->ut_name, li->username, in construct_utmp()
695 MIN_SIZEOF(ut->ut_name, li->username)); in construct_utmp()
767 strncpy(utx->ut_user, li->username, in construct_utmpx()
768 MIN_SIZEOF(utx->ut_user, li->username)); in construct_utmpx()
1170 if (strncmp(li->username, ut->ut_name, in wtmp_islogin()
1171 MIN_SIZEOF(li->username, ut->ut_name)) == 0) { in wtmp_islogin()
1334 if (strncmp(li->username, utx->ut_user, in wtmpx_islogin()
1335 MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { in wtmpx_islogin()
1491 LASTLOG_FILE, li->username); in lastlog_openseek()
1577 if ((ll = getlastlogxbyname(li->username, &l)) == NULL) { in lastlog_get_entry()
1636 utx = getutxuser(li->username); in utmpx_get_entry()
1662 record_failed_login(struct ssh *ssh, const char *username, const char *hostname, in record_failed_login() argument
1694 strncpy(ut.ut_user, username, sizeof(ut.ut_user)); in record_failed_login()