diff options
author | krion <krion@FreeBSD.org> | 2005-10-10 08:38:21 +0000 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2005-10-10 08:38:21 +0000 |
commit | 537847820447d6812358ed25ca0b91a8e78c1fef (patch) | |
tree | 63b00b9d718926f824e047f6ddbe2e5705050eed /usr.sbin/pkg_install/delete | |
parent | 9797c80fe8f42499bdb5797944e4508e53a27c19 (diff) | |
download | FreeBSD-src-537847820447d6812358ed25ca0b91a8e78c1fef.zip FreeBSD-src-537847820447d6812358ed25ca0b91a8e78c1fef.tar.gz |
Fix pkg_info(1) and pkg_delete(1) to handle properly packages which
names start with a digit.
PR: bin/76858
Submitted by: Matthew D. Fuller <fullermd@over-yonder dot net>
MFC after: 3 days
Diffstat (limited to 'usr.sbin/pkg_install/delete')
-rw-r--r-- | usr.sbin/pkg_install/delete/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/delete/main.c b/usr.sbin/pkg_install/delete/main.c index c75d73a..3100ae3 100644 --- a/usr.sbin/pkg_install/delete/main.c +++ b/usr.sbin/pkg_install/delete/main.c @@ -121,7 +121,7 @@ main(int argc, char **argv) * package name. Otherwise we've come across a trailing '/' and * need to continue our quest. */ - if (isalpha(*pkgs_split) || ((MatchType == MATCH_GLOB) && \ + if (isalnum(*pkgs_split) || ((MatchType == MATCH_GLOB) && \ strpbrk(pkgs_split, "*?[]") != NULL)) { *argv = pkgs_split; break; |