5fe304a328
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>
12 lines
350 B
C
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;
|