]> andersk Git - openssh.git/blobdiff - loginrec.c
- (dtucker) [loginrec.c] Use the SUSv3 specified name for the user name
[openssh.git] / loginrec.c
index f4af06736018f856d2abd467a428ca05135cf997..bca95970711e57caa17ee764ff2e2068336a8a40 100644 (file)
@@ -758,8 +758,8 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx)
        utx->ut_pid = li->pid;
 
        /* strncpy(): Don't necessarily want 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 @@ wtmpx_write_entry(struct logininfo *li)
 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 (utx->ut_type == USER_PROCESS)
                        return (1);
This page took 0.042935 seconds and 4 git commands to generate.