opnsense-ports/mail/popular/files/patch-src-util.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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;