search for: wtmpx_islogin

Displaying 4 results from an estimated 4 matches for "wtmpx_islogin".

2001 Jun 29
1
wtmpx problem on Solaris 8 sparcv9 (64bit) environment
...futx; + utmpx_to_futmpx(&utx , &futx); + return wtmpx_write(li, &futx); + } +#else + return wtmpx_write(li, &utx); +#endif + } @@ -1207,7 +1258,11 @@ /* Return true if this wtmpx entry indicates a login */ static int +#ifdef __sparcv9 +wtmpx_islogin(struct logininfo *li, struct futmpx *utx) +#else wtmpx_islogin(struct logininfo *li, struct utmpx *utx) +#endif { if ( strncmp(li->username, utx->ut_name, MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) { @@ -1226,7 +1281,11 @@ wtmpx_get_entry(struct logininfo...
2002 Jul 09
0
[Bug 348] New: infinite loop scanning wtmpx
...enssh-unix-dev at mindrot.org ReportedBy: rodney at bond.net This is with OpenSSH 3.4p1. In the function wtmpx_get_entry() in the file loginrec.c from lines 1264 through 1292 there is a while-loop with the test condition of "!found". Within the while-loop when the test condition wtmpx_islogin() returns true the action "found = 1;" should be done. Otherwise the while-loop will loop forever on a wtmpx login entry and the entry following it. Found while running the code. When "found = 1;" is added before line 1286 (the "continue;") the code performs as would...
2000 Jul 04
0
AW: FreeBSD 3.5-STABLE
..., ut->ut_user)) == 0) { + if (strncmp(li->username, ut->ut_name, + MIN_SIZEOF(li->username, ut->ut_name)) == 0) { # ifdef HAVE_TYPE_IN_UTMP if (ut->ut_type & USER_PROCESS) return 1; @@ -1161,7 +1161,7 @@ static int wtmpx_islogin(struct logininfo *li, struct utmpx *utx) { - if ( strncmp(li->username, utx->ut_user, + if ( strncmp(li->username, utx->ut_name, MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { # ifdef HAVE_TYPE_IN_UTMPX if (utx->ut_type == USER_PR...
2009 Dec 25
2
[openssh-portable] utmpx and ut_name
...nt null termination */ - strncpy(utx->ut_name, li->username, - MIN_SIZEOF(utx->ut_name, li->username)); + strncpy(utx->ut_user, li->username, + MIN_SIZEOF(utx->ut_user, li->username)); if (li->type == LTYPE_LOGOUT) return; @@ -1316,8 +1316,8 @@ static int wtmpx_islogin(struct logininfo *li, struct utmpx *utx) { - if (strncmp(li->username, utx->ut_name, - MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) { + if (strncmp(li->username, utx->ut_user, + MIN_SIZEOF(li->username, utx->ut_user)) == 0 ) { # ifdef HAVE_TYPE_IN_UTMPX if (ut...