]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, subst.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 19 Dec 1998 08:08:43 +0000 (08:08 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 19 Dec 1998 08:08:43 +0000 (08:08 +0000)
  subst.c (get_subst_symbol): Add [0-9] to the list of valid characters
   for a substitution symbol.

util/ChangeLog
util/subst.c

index 05fb7838b71470bb981c22b318c8189e6bcf6c4d..e1acb9c79d176f93e5362a278446a7ab822377f2 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * subst.c (get_subst_symbol): Add [0-9] to the list of valid
+               characters for a substitution symbol.
+
 1998-08-01  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * subst.c: Add the ability to substitute apparent shell/make
index 9b9b176d68132457fc5ab705320e8b559e097bc9..f1f7a6e3ee25aff8c36d7d6da2e4ab52a07526c4 100644 (file)
@@ -86,12 +86,13 @@ static char *get_subst_symbol(const char *begin, int len, char prefix)
        start[len] = 0;
        
        /*
-        * The substitution variable must all be in the of [A-Za-z_].
+        * The substitution variable must all be in the of [0-9A-Za-z_].
         * If it isn't, this must be an invalid symbol name.
         */
        for (cp = start; *cp; cp++) {
                if (!(*cp >= 'a' && *cp <= 'z') &&
                    !(*cp >= 'A' && *cp <= 'Z') &&
+                   !(*cp >= '0' && *cp <= '9') &&
                    !(*cp == '_'))
                        return NULL;
        }