summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-03 03:46:43 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-03 03:46:43 +0000
commitce37bd9dcaeaf0c5e97845954342762ebaf43b10 (patch)
treecbce26496464b8b48463e560501756172158478f
parentcc10fdf7583ec644850445ad96afd8b22b71e86f (diff)
downloadsamba-ce37bd9dcaeaf0c5e97845954342762ebaf43b10.tar.gz
samba-ce37bd9dcaeaf0c5e97845954342762ebaf43b10.tar.xz
samba-ce37bd9dcaeaf0c5e97845954342762ebaf43b10.zip
add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
-rw-r--r--source/lib/time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index bab80ad6214..5fc6595b6f1 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -94,6 +94,11 @@ init the time differences
void TimeInit(void)
{
serverzone = TimeZone(time(NULL));
+
+ if ((serverzone % 60) != 0) {
+ DEBUG(1,("WARNING: Your timezone is not a multiple of 1 minute.\n"));
+ }
+
DEBUG(4,("Serverzone is %d\n",serverzone));
}