diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | loginrec.c | 17 |
3 files changed, 14 insertions, 8 deletions
@@ -2,6 +2,9 @@ | |||
2 | - (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com> | 2 | - (djm) More SunOS 4.1.x fixes from Nate Itkin <nitkin@europa.com> |
3 | - (djm) Avoid failures on Irix when ssh is not setuid. Fix from | 3 | - (djm) Avoid failures on Irix when ssh is not setuid. Fix from |
4 | Michael Stone <mstone@cs.loyola.edu> | 4 | Michael Stone <mstone@cs.loyola.edu> |
5 | - (djm) Don't seek in directory based lastlogs | ||
6 | - (djm) Fix --with-ipaddr-display configure option test. Patch from | ||
7 | Jarno Huuskonen <jhuuskon@messi.uku.fi> | ||
5 | 8 | ||
6 | 20000813 | 9 | 20000813 |
7 | - (djm) Add $(srcdir) to includes when compiling (for VPATH). Report from | 10 | - (djm) Add $(srcdir) to includes when compiling (for VPATH). Report from |
diff --git a/configure.in b/configure.in index 0c9e4fc66..7ad0d01d7 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1031,7 +1031,7 @@ DISPLAY_HACK_MSG="no" | |||
1031 | AC_ARG_WITH(ipaddr-display, | 1031 | AC_ARG_WITH(ipaddr-display, |
1032 | [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY], | 1032 | [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY], |
1033 | [ | 1033 | [ |
1034 | if test "x$withval" = "xno" ; then | 1034 | if test "x$withval" != "xno" ; then |
1035 | AC_DEFINE(IPADDR_IN_DISPLAY) | 1035 | AC_DEFINE(IPADDR_IN_DISPLAY) |
1036 | DISPLAY_HACK_MSG="yes" | 1036 | DISPLAY_HACK_MSG="yes" |
1037 | fi | 1037 | fi |
diff --git a/loginrec.c b/loginrec.c index 798e966f0..6b87ba320 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -160,7 +160,7 @@ | |||
160 | #include "xmalloc.h" | 160 | #include "xmalloc.h" |
161 | #include "loginrec.h" | 161 | #include "loginrec.h" |
162 | 162 | ||
163 | RCSID("$Id: loginrec.c,v 1.19 2000/08/15 00:01:22 djm Exp $"); | 163 | RCSID("$Id: loginrec.c,v 1.20 2000/08/15 00:21:17 djm Exp $"); |
164 | 164 | ||
165 | /** | 165 | /** |
166 | ** prototypes for helper functions in this file | 166 | ** prototypes for helper functions in this file |
@@ -1380,14 +1380,17 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode) | |||
1380 | return 0; | 1380 | return 0; |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | /* find this uid's offset in the lastlog file */ | 1383 | if (type == LL_FILE) { |
1384 | offset = (off_t) ( (long)li->uid * sizeof(struct lastlog)); | 1384 | /* find this uid's offset in the lastlog file */ |
1385 | offset = (off_t) ( (long)li->uid * sizeof(struct lastlog)); | ||
1385 | 1386 | ||
1386 | if ( lseek(*fd, offset, SEEK_SET) != offset ) { | 1387 | if ( lseek(*fd, offset, SEEK_SET) != offset ) { |
1387 | log("lastlog_openseek: %s->lseek(): %s", | 1388 | log("lastlog_openseek: %s->lseek(): %s", |
1388 | lastlog_file, strerror(errno)); | 1389 | lastlog_file, strerror(errno)); |
1389 | return 0; | 1390 | return 0; |
1391 | } | ||
1390 | } | 1392 | } |
1393 | |||
1391 | return 1; | 1394 | return 1; |
1392 | } | 1395 | } |
1393 | 1396 | ||