freebsd-ports/mail/popular/files/patch-src-util.c
Pav Lucistnik 06f1d1fa7f - Fix time values parsing on FreeBSD 5.X and up
Reported by:	Vlastimil Zeman <vlastimil.zeman@col.cz>
2006-06-14 15:42:21 +00:00

11 lines
333 B
C

--- src/util.c.orig Mon Apr 30 17:14:14 2001
+++ src/util.c Wed Jun 7 13:19:59 2006
@@ -125,7 +125,7 @@
while (1) {
if (*tptr == '-') return -1;
value = strtol(tptr, &tptr, 10);
- if (errno) return -1;
+ if (errno && errno != EINVAL) return -1;
switch (*tptr) {
case 'd':
sec += value*60*60*24;