diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | loginrec.c | 7 |
3 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20000923 | ||
2 | - (djm) Fix address logging in utmp from Kevin Steves | ||
3 | <stevesk@sweden.hp.com> | ||
4 | |||
1 | 20000920 | 5 | 20000920 |
2 | - (djm) Fix bad path substitution. Report from Andrew Miner | 6 | - (djm) Fix bad path substitution. Report from Andrew Miner |
3 | <asminer@cs.iastate.edu> | 7 | <asminer@cs.iastate.edu> |
diff --git a/configure.in b/configure.in index b03905f9a..774529d30 100644 --- a/configure.in +++ b/configure.in | |||
@@ -74,6 +74,7 @@ case "$host" in | |||
74 | IPADDR_IN_DISPLAY=yes | 74 | IPADDR_IN_DISPLAY=yes |
75 | AC_DEFINE(USE_PIPES) | 75 | AC_DEFINE(USE_PIPES) |
76 | AC_DEFINE(DISABLE_SHADOW) | 76 | AC_DEFINE(DISABLE_SHADOW) |
77 | AC_DEFINE(DISABLE_UTMP) | ||
77 | LIBS="$LIBS -lsec" | 78 | LIBS="$LIBS -lsec" |
78 | MANTYPE='$(CATMAN)' | 79 | MANTYPE='$(CATMAN)' |
79 | mansubdir=cat | 80 | mansubdir=cat |
@@ -83,6 +84,7 @@ case "$host" in | |||
83 | IPADDR_IN_DISPLAY=yes | 84 | IPADDR_IN_DISPLAY=yes |
84 | AC_DEFINE(USE_PIPES) | 85 | AC_DEFINE(USE_PIPES) |
85 | AC_DEFINE(DISABLE_SHADOW) | 86 | AC_DEFINE(DISABLE_SHADOW) |
87 | AC_DEFINE(DISABLE_UTMP) | ||
86 | LIBS="$LIBS -lsec" | 88 | LIBS="$LIBS -lsec" |
87 | MANTYPE='$(CATMAN)' | 89 | MANTYPE='$(CATMAN)' |
88 | mansubdir=cat | 90 | mansubdir=cat |
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 | ||
164 | RCSID("$Id: loginrec.c,v 1.23 2000/09/05 05:13:07 djm Exp $"); | 164 | RCSID("$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 */ |