summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c
index 0e1f344b9..460f551b2 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -161,7 +161,7 @@
161#include "xmalloc.h" 161#include "xmalloc.h"
162#include "loginrec.h" 162#include "loginrec.h"
163 163
164RCSID("$Id: loginrec.c,v 1.23 2000/09/05 05:13:07 djm Exp $"); 164RCSID("$Id: loginrec.c,v 1.24 2000/09/23 02:57:27 djm Exp $");
165 165
166/** 166/**
167 ** prototypes for helper functions in this file 167 ** prototypes for helper functions in this file
@@ -678,7 +678,10 @@ construct_utmpx(struct logininfo *li, struct utmpx *utx)
678 strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname)); 678 strncpy(utx->ut_host, li->hostname, MIN_SIZEOF(utx->ut_host, li->hostname));
679# endif 679# endif
680# ifdef HAVE_ADDR_IN_UTMPX 680# ifdef HAVE_ADDR_IN_UTMPX
681 /* FIXME: (ATL) not supported yet */ 681 /* this is just a 32-bit IP address */
682 if (li->hostaddr.sa.sa_family == AF_INET)
683 utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr;
684 # endif
682# endif 685# endif
683# ifdef HAVE_SYSLEN_IN_UTMPX 686# ifdef HAVE_SYSLEN_IN_UTMPX
684 /* ut_syslen is the length of the utx_host string */ 687 /* ut_syslen is the length of the utx_host string */