Files
ports/mail/popular/files/patch-src_util.c
T
Li-Wen Hsu 5fe304a328 mail/popular: Prepare for textproc/p5-XML-Parser update
Also:
- Bump PORTREVISION
- Skip build of man pages, which are already present in the distribution
- Add LICENSE
- Add USE_LDCONFIG
- Regenerate patches to follow the standard
- Pass maintainership to the submitter

PR:		248725
Submitted by:	Sergei Vyshenski <svysh.fbsd@gmail.com>
2020-08-19 13:17:38 +00:00

12 lines
350 B
C

--- src/util.c.orig 2001-04-30 15:14:14 UTC
+++ src/util.c
@@ -125,7 +125,7 @@ timedesc2sec(char *desc, int min, int max)
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;