diff options
author | Theodore Ts'o <tytso@mit.edu> | 1998-12-19 08:08:43 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1998-12-19 08:08:43 +0000 |
commit | 7822c1d410a1c6e98f8367de7593ca6e52df1f37 (patch) | |
tree | 9ba3e9538e9c7c0ae40c46c13771267a562f18eb /util/subst.c | |
parent | cb62017475565967c7308552a06f7fc1a77d76bb (diff) | |
download | e2fsprogs-7822c1d410a1c6e98f8367de7593ca6e52df1f37.tar.gz |
ChangeLog, subst.c:
subst.c (get_subst_symbol): Add [0-9] to the list of valid characters
for a substitution symbol.
Diffstat (limited to 'util/subst.c')
-rw-r--r-- | util/subst.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |