summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-28 18:55:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-28 18:55:21 +0000
commit3da74f2db96d60725b88d923d1463fd6396b7f37 (patch)
treeb58bdd50cf693ee6a1306d48c05a9d7bd996faf9 /distrib/miniroot/install.sub
parentbc51845c28762de8c08cdbd4fb26175120b408f6 (diff)
isnumeric did not check the last char in a string
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 4812d1f120a..2ea5c72c7c0 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.109 1998/10/28 17:51:14 millert Exp $
+# $OpenBSD: install.sub,v 1.110 1998/10/28 18:55:20 millert Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -228,7 +228,7 @@ basename () {
isnumeric() {
local _a
_a=$1
- while [ ${#_a} != 1 ]; do
+ while [ ${#_a} != 0 ]; do
case $_a in
[0-9]*) ;;
*) echo 0; return;;