]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Remove needless sanity check in tune2fs's -i option.
authorTheodore Ts'o <tytso@mit.edu>
Sun, 14 May 2006 21:30:51 +0000 (17:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 May 2006 21:30:51 +0000 (17:30 -0400)
We were complaining with a confusing error message if the user tried to specify
a check interval larger than a 365 days.  It's probably a bad idea if the user wants to
do this, but it's not worth it to complain.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/ChangeLog
misc/tune2fs.c

index 36ec5c7d5b120c38dfa4ecf8ab6bd15191b5fcd8..69ccfdf9ffba47cbeef0a40f2651bc6f1895f6b5 100644 (file)
@@ -1,3 +1,10 @@
+2006-05-14  Theodore Tso  <tytso@mit.edu>
+
+       * tune2fs.c (parse_tune2fs_options): Don't give a confusing error
+               message if the user specifies an check time interval
+               greater than a year; it's probably a bad idea, but it's
+               not worth it to complain.
+
 2006-05-13  Theodore Tso  <tytso@mit.edu>
 
        * mke2fs.c (test_disk): Pass the private option -X to badblocks so
index adf0b56757bc2cb363181ecc8624ac0337815b23..a0fcf37daf7d6c1f63c78a60fb0cbc9181bddf77 100644 (file)
@@ -595,7 +595,7 @@ static void parse_tune2fs_options(int argc, char **argv)
                                        tmp++;
                                        break;
                                }
-                               if (*tmp || interval > (365 * 86400)) {
+                               if (*tmp) {
                                        com_err (program_name, 0,
                                                _("bad interval - %s"), optarg);
                                        usage();