svn commit: samba r19408 - in branches/SAMBA_4_0/source/lib/replace: .

tridge at samba.org tridge at samba.org
Thu Oct 19 03:04:00 GMT 2006


Author: tridge
Date: 2006-10-19 03:04:00 +0000 (Thu, 19 Oct 2006)
New Revision: 19408

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19408

Log:

I think tm_mon is ending up as -1 on some platforms

Modified:
   branches/SAMBA_4_0/source/lib/replace/timegm.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/timegm.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/timegm.c	2006-10-19 01:19:44 UTC (rev 19407)
+++ branches/SAMBA_4_0/source/lib/replace/timegm.c	2006-10-19 03:04:00 UTC (rev 19408)
@@ -53,6 +53,7 @@
 	unsigned i;
 
 	if (tm->tm_mon > 12 ||
+	    tm->tm_mon < 0 ||
 	    tm->tm_mday > 31 ||
 	    tm->tm_min > 60 ||
 	    tm->tm_sec > 60 ||



More information about the samba-cvs mailing list