summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-24 11:59:49 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-06-24 11:59:49 +0000
commit0a28fa8cca18d3b17eb9dd168336fac132bc3028 (patch)
treecd12dc230c74fa5925e9a74b3c904c97717ba606 /distrib/miniroot
parentccd42c9999b40f0c7e3a68eea94d22210995f838 (diff)
Remove leading zeros of subpart of partition's blocksize so ksh does not
interpret it as octal, leading to error messages like "048" is not a number. ok krw
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 77cf954a938..04cf09c13da 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.431 2008/06/13 04:41:44 krw Exp $
+# $OpenBSD: install.sub,v 1.432 2008/06/24 11:59:48 tobias Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2007 Todd Miller, Theo de Raadt, Ken Westerback
@@ -241,6 +241,7 @@ stdsize () {
shift
_p=${_sz%[0-9][0-9][0-9]}
_s=${_sz#$_p}
+ _s=${_s##+(0)}
_sz=$_p
done