Browse Source

* utilvfs (is_year): Revert range of valid years to 1900 - 3000 as parsing
has been fixed.

Leonard den Ottolander 18 years ago
parent
commit
c979e827ce
2 changed files with 6 additions and 5 deletions
  1. 5 0
      vfs/ChangeLog
  2. 1 5
      vfs/utilvfs.c

+ 5 - 0
vfs/ChangeLog

@@ -1,3 +1,8 @@
+2006-10-15  Leonard den Ottolander <leonard den ottolander nl>
+
+	* utilvfs.c (is_year): Revert range of valid years to 1900 - 3000 as
+	parsing has been fixed.
+
 2006-08-01  Leonard den Ottolander <leonard den ottolander nl>
 
 	* extfs/rpm: Restore legacy RPM tags. There's no harm in keeping them

+ 1 - 5
vfs/utilvfs.c

@@ -399,11 +399,7 @@ is_year (char *str, struct tm *tim)
     if (sscanf (str, "%ld", &year) != 1)
 	return 0;
 
-    /* The range of valid year numbers is quite restricted in order to
-     * reduce the number of parsing errors due to filenames starting
-     * with a four-digit string and a space.
-     */
-    if (!(1970 <= year && year <= 2015))
+    if (year < 1900 || year > 3000)
 	return 0;
 
     tim->tm_year = (int) (year - 1900);