summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/info
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2005-10-10 08:38:21 +0000
committerkrion <krion@FreeBSD.org>2005-10-10 08:38:21 +0000
commit537847820447d6812358ed25ca0b91a8e78c1fef (patch)
tree63b00b9d718926f824e047f6ddbe2e5705050eed /usr.sbin/pkg_install/info
parent9797c80fe8f42499bdb5797944e4508e53a27c19 (diff)
downloadFreeBSD-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/info')
-rw-r--r--usr.sbin/pkg_install/info/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/info/main.c b/usr.sbin/pkg_install/info/main.c
index d985938..b22c54c 100644
--- a/usr.sbin/pkg_install/info/main.c
+++ b/usr.sbin/pkg_install/info/main.c
@@ -240,7 +240,7 @@ main(int argc, char **argv)
* 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;
OpenPOWER on IntegriCloud