git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7411991
)
r19408: I think tm_mon is ending up as -1 on some platforms
author
Andrew Tridgell
<tridge@samba.org>
Thu, 19 Oct 2006 03:04:00 +0000
(
03:04
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:21:27 +0000
(14:21 -0500)
(This used to be commit
d01bdf1f2dcdf77043a5ad162ee336d3c6f2e944
)
source4/lib/replace/timegm.c
patch
|
blob
|
history
diff --git
a/source4/lib/replace/timegm.c
b/source4/lib/replace/timegm.c
index 608882d0ce67a168daef84d92225b7c52f9ad41d..395c684e11700431ed7a2eafec5a2dd307fb28c3 100644
(file)
--- a/
source4/lib/replace/timegm.c
+++ b/
source4/lib/replace/timegm.c
@@
-53,6
+53,7
@@
time_t rep_timegm(struct tm *tm)
unsigned i;
if (tm->tm_mon > 12 ||
+ tm->tm_mon < 0 ||
tm->tm_mday > 31 ||
tm->tm_min > 60 ||
tm->tm_sec > 60 ||