Removed the lower limits for splitting by time and by size.

This commit is contained in:
Moritz Bunkus 2005-03-27 10:32:03 +00:00
parent 16e140149e
commit 23a737b7ce

View File

@ -681,8 +681,7 @@ parse_split(const string &arg) {
mxsscanf(s.c_str(), "%d:%d:%d", &hours, &mins, &secs); mxsscanf(s.c_str(), "%d:%d:%d", &hours, &mins, &secs);
split_after = secs + mins * 60 + hours * 3600; split_after = secs + mins * 60 + hours * 3600;
if ((hours < 0) || (mins < 0) || (mins > 59) || if ((hours < 0) || (mins < 0) || (mins > 59) || (secs < 0) || (secs > 59))
(secs < 0) || (secs > 59) || (split_after < 10))
mxerror(_("Invalid time for '--split' in '--split %s'.\n"), mxerror(_("Invalid time for '--split' in '--split %s'.\n"),
arg.c_str()); arg.c_str());
@ -721,10 +720,6 @@ parse_split(const string &arg) {
mxerror(_("Invalid split size in '--split %s'.\n"), arg.c_str()); mxerror(_("Invalid split size in '--split %s'.\n"), arg.c_str());
split_after *= modifier; split_after *= modifier;
if (split_after <= (1024 * 1024))
mxerror(_("Invalid split size in '--split %s': The size is too small.\n"),
arg.c_str());
split_by_time = false; split_by_time = false;
} }