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 | 0dae133a236a21d79d7292593fe7fc6658b227c6 (patch) | |
tree | 9711ca23b9e73a48dfc57b6cf156544a4420ab33 /mdk-stage1 | |
parent | 581cd0a592d47ad9593c18ba50d2f08420826930 (diff) | |
download | drakx-0dae133a236a21d79d7292593fe7fc6658b227c6.tar drakx-0dae133a236a21d79d7292593fe7fc6658b227c6.tar.gz drakx-0dae133a236a21d79d7292593fe7fc6658b227c6.tar.bz2 drakx-0dae133a236a21d79d7292593fe7fc6658b227c6.tar.xz drakx-0dae133a236a21d79d7292593fe7fc6658b227c6.zip |
fix time argument type (upstream commit 8d07ad78c8a32b9c89bfcea25d775e8440fd4172 on pppd/session.c)
Diffstat (limited to 'mdk-stage1')
-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); |