Home
last modified time | relevance | path

Searched refs:old_ut (Results 1 – 2 of 2) sorted by relevance

/external/dropbear/
Dloginrec.c682 struct utmp old_ut; in utmp_write_direct() local
718 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
719 (ut->ut_host[0] == '\0') && (old_ut.ut_host[0] != '\0') && in utmp_write_direct()
720 (strncmp(old_ut.ut_line, ut->ut_line, sizeof(ut->ut_line)) == 0) && in utmp_write_direct()
721 (strncmp(old_ut.ut_name, ut->ut_name, sizeof(ut->ut_name)) == 0)) { in utmp_write_direct()
722 (void)memcpy(ut->ut_host, old_ut.ut_host, sizeof(ut->ut_host)); in utmp_write_direct()
/external/openssh/
Dloginrec.c842 struct utmp old_ut; in utmp_write_direct() local
890 if (atomicio(read, fd, &old_ut, sizeof(old_ut)) == sizeof(old_ut) && in utmp_write_direct()
891 (ut->ut_host[0] == '\0') && (old_ut.ut_host[0] != '\0') && in utmp_write_direct()
892 (strncmp(old_ut.ut_line, ut->ut_line, sizeof(ut->ut_line)) == 0) && in utmp_write_direct()
893 (strncmp(old_ut.ut_name, ut->ut_name, sizeof(ut->ut_name)) == 0)) in utmp_write_direct()
894 memcpy(ut->ut_host, old_ut.ut_host, sizeof(ut->ut_host)); in utmp_write_direct()