diff options
author | Damien Miller <djm@mindrot.org> | 2000-08-09 16:34:27 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-08-09 16:34:27 +1000 |
commit | 36ccb5c4f306784c9ceacf5ef5014ae06c9545de (patch) | |
tree | 5d8a216d8a4e23e0a4930504e6d821d3c792793a /loginrec.c | |
parent | d17b8d5aee2dfac46514b67b709ebca03b6fec25 (diff) |
- (djm) utmp direct write & SunOS 4 patch from Charles Levert
<charles@comm.polymtl.ca>
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c index 8b82fa29d..e7542c92a 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.17 2000/07/11 02:15:54 djm Exp $"); | 163 | RCSID("$Id: loginrec.c,v 1.18 2000/08/09 06:34:28 djm Exp $"); |
164 | 164 | ||
165 | /** | 165 | /** |
166 | ** prototypes for helper functions in this file | 166 | ** prototypes for helper functions in this file |
@@ -740,7 +740,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut) | |||
740 | } | 740 | } |
741 | 741 | ||
742 | (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); | 742 | (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); |
743 | if (atomicio(write, fd, ut, sizeof(ut)) != sizeof(ut)) | 743 | if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) |
744 | log("utmp_write_direct: error writing %s: %s", | 744 | log("utmp_write_direct: error writing %s: %s", |
745 | UTMP_FILE, strerror(errno)); | 745 | UTMP_FILE, strerror(errno)); |
746 | 746 | ||