Skip to content

Commit 352f411

Browse files
committed
In backup_content.control assume that too big value is -1
1 parent 730e5e0 commit 352f411

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/dir.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,13 @@ get_control_value(const char *str, const char *name,
13031303

13041304
*buf_int64_ptr = '\0';
13051305
if (!parse_int64(buf_int64, value_int64, 0))
1306-
goto bad_format;
1306+
{
1307+
/* We assume that too big value is -1 */
1308+
if (errno == ERANGE)
1309+
*value_int64 = -1;
1310+
else
1311+
goto bad_format;
1312+
}
13071313
}
13081314

13091315
return true;

0 commit comments

Comments
 (0)