diff options
author | Olivier Blin <blino@mageia.org> | 2011-03-18 17:15:14 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-03-18 17:15:14 +0000 |
commit | d244ccf9730dd4e860734d0ff4115ed3613ac195 (patch) | |
tree | 9711ca23b9e73a48dfc57b6cf156544a4420ab33 /mdk-stage1/ppp | |
parent | a9016ab5997dabfe305221664658e801487f218e (diff) | |
download | drakx-backup-do-not-use-d244ccf9730dd4e860734d0ff4115ed3613ac195.tar drakx-backup-do-not-use-d244ccf9730dd4e860734d0ff4115ed3613ac195.tar.gz drakx-backup-do-not-use-d244ccf9730dd4e860734d0ff4115ed3613ac195.tar.bz2 drakx-backup-do-not-use-d244ccf9730dd4e860734d0ff4115ed3613ac195.tar.xz drakx-backup-do-not-use-d244ccf9730dd4e860734d0ff4115ed3613ac195.zip |
fix time argument type (upstream commit 8d07ad78c8a32b9c89bfcea25d775e8440fd4172 on pppd/session.c)
Diffstat (limited to 'mdk-stage1/ppp')
-rw-r--r-- | mdk-stage1/ppp/pppd/auth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/ppp/pppd/auth.c b/mdk-stage1/ppp/pppd/auth.c index 0520c1eef..fd6cb13d4 100644 --- a/mdk-stage1/ppp/pppd/auth.c +++ b/mdk-stage1/ppp/pppd/auth.c @@ -1191,11 +1191,13 @@ plogin(user, passwd, msg) if (pw != (struct passwd *)NULL) { struct lastlog ll; int fd; + time_t tnow; if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) { (void)lseek(fd, (off_t)(pw->pw_uid * sizeof(ll)), SEEK_SET); memset((void *)&ll, 0, sizeof(ll)); - (void)time(&ll.ll_time); + (void)time(&tnow); + ll.ll_time = tnow; (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line)); (void)write(fd, (char *)&ll, sizeof(ll)); (void)close(fd); |