so that it deals with -rc version numbers correctly.
+2005-01-06 Theodore Ts'o <tytso@mit.edu>
+
+ * version.c (ext2fs_parse_version_string): Change parsing
+ algorithm so that version strings such as 1.36-rc1 returns
+ a non-surprising result (i.e., 136, and not 1361).
+
2005-01-05 Theodore Ts'o <tytso@mit.edu>
* block.c (block_iterate_ind, block_iterate_dind,
int version = 0;
for (cp = ver_string; *cp; cp++) {
- if (!isdigit(*cp))
+ if (*cp == '.')
continue;
+ if (!isdigit(*cp))
+ break;
version = (version * 10) + (*cp - '0');
}
return version;
* Ts'o. This file may be redistributed under the GNU Public License.
*/
-#define E2FSPROGS_VERSION "1.35"
-#define E2FSPROGS_DATE "28-Feb-2004"
+#define E2FSPROGS_VERSION "1.36-rc1"
+#define E2FSPROGS_DATE "06-Jan-2005"