summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-07-01 22:55:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:06 -0500
commitc531f726c4431dc7bdeaf53864bfe30347e426f1 (patch)
treecac5e59dbffffaa3c1bc6a17b20753e2e5ce1d40 /source3/smbd
parent3382b0a21af393b4b40956c139224867daf4c848 (diff)
downloadsamba-c531f726c4431dc7bdeaf53864bfe30347e426f1.tar.gz
samba-c531f726c4431dc7bdeaf53864bfe30347e426f1.tar.bz2
samba-c531f726c4431dc7bdeaf53864bfe30347e426f1.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. (This used to be commit fbc06831d3a7e8645409158ee1ae1f9f192913a7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/utmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c
index a521d0113d..b1735dfcc4 100644
--- a/source3/smbd/utmp.c
+++ b/source3/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"