diff options
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/subst.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 05fb7838..e1acb9c7 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -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 diff --git a/util/subst.c b/util/subst.c index 9b9b176d..f1f7a6e3 100644 --- a/util/subst.c +++ b/util/subst.c @@ -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; } |