summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_install/delete/main.c2
-rw-r--r--usr.sbin/pkg_install/info/main.c2
2 files changed, 2 insertions, 2 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;
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