From 537847820447d6812358ed25ca0b91a8e78c1fef Mon Sep 17 00:00:00 2001 From: krion Date: Mon, 10 Oct 2005 08:38:21 +0000 Subject: 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 MFC after: 3 days --- usr.sbin/pkg_install/delete/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/pkg_install/delete/main.c') 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; -- cgit v1.1