]> andersk Git - openssh.git/commitdiff
- (dtucker) [loginrec.c] Use the SUSv3 specified name for the user name
authordtucker <dtucker>
Sat, 9 Jan 2010 07:18:04 +0000 (07:18 +0000)
committerdtucker <dtucker>
Sat, 9 Jan 2010 07:18:04 +0000 (07:18 +0000)
   when using utmpx.  Patch from Ed Schouten.

ChangeLog
loginrec.c

index 9e8b410170643fd7a4f93fc13764e6d1d534f0b2..31f205f6a161eb2bc73fdbd9c7631a82d3249faf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
    have it.
  - (dtucker) [defines.h] define PRIu64 for platforms that don't have it.
  - (dtucker) [roaming_client.c] Wrap inttypes.h in an ifdef.
+ - (dtucker) [loginrec.c] Use the SUSv3 specified name for the user name
+   when using utmpx.  Patch from Ed Schouten.
 
 20091208
  - (dtucker) OpenBSD CVS Sync
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.043901 seconds and 5 git commands to generate.