From 0dae133a236a21d79d7292593fe7fc6658b227c6 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 18 Mar 2011 17:15:14 +0000 Subject: fix time argument type (upstream commit 8d07ad78c8a32b9c89bfcea25d775e8440fd4172 on pppd/session.c) --- mdk-stage1/ppp/pppd/auth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') 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); -- cgit v1.2.1