summaryrefslogtreecommitdiffstats
path: root/source/smbd/utmp.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-07-01 22:55:38 +0000
committerJeremy Allison <jra@samba.org>2004-07-01 22:55:38 +0000
commit38faa150948effe5f854b1a511a3886c8a95d124 (patch)
tree97ca194731337ee1ca92cf9c87b41d8147a026ae /source/smbd/utmp.c
parent9564ddb88c3aa4be72fd324005026eeddd5c7004 (diff)
downloadsamba-38faa150948effe5f854b1a511a3886c8a95d124.tar.gz
samba-38faa150948effe5f854b1a511a3886c8a95d124.tar.xz
samba-38faa150948effe5f854b1a511a3886c8a95d124.zip
r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replication
sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues <cwg@deepeddy.com>. Jeremy.
Diffstat (limited to 'source/smbd/utmp.c')
-rw-r--r--source/smbd/utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/utmp.c b/source/smbd/utmp.c
index a521d0113d4..b1735dfcc49 100644
--- a/source/smbd/utmp.c
+++ b/source/smbd/utmp.c
@@ -514,10 +514,10 @@ static BOOL sys_utmp_fill(struct utmp *u,
* But note that we do the more precise ut_tv as the final assignment.
*/
#if defined(HAVE_UT_UT_TIME)
- gettimeofday(&timeval, NULL);
+ GetTimeOfDay(&timeval);
u->ut_time = timeval.tv_sec;
#elif defined(HAVE_UT_UT_TV)
- gettimeofday(&timeval, NULL);
+ GetTimeOfDay(&timeval);
u->ut_tv = timeval;
#else
#error "with-utmp must have UT_TIME or UT_TV"