summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-11-18 23:25:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-11-18 23:25:47 +0000
commit7840194e4f9c3eb2b46150e147dc32874af38d64 (patch)
tree1a24e9cf8e283657a0a5a5e57b1b874d34e05a58 /distrib/miniroot/install.sub
parent9b19045559b127eb080350c94ec86e86fb094292 (diff)
do not run makedev for a uid; ok krw
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 5a10b935917..ad366ad210b 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.628 2010/11/12 06:47:40 halex Exp $
+# $OpenBSD: install.sub,v 1.629 2010/11/18 23:25:46 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1721,7 +1721,7 @@ check_fs() {
[ -f "/sbin/fsck_$_fstype" ] || continue
# Make sure device exists before fsck'ing it.
_rest=${_dev#/dev/}
- makedev ${_rest%[a-p]} || continue
+ [ ${_dev#/} == ${_dev} ] || makedev ${_rest%[a-p]} || continue
echo -n "fsck -${_f}p $_dev..."
if ! fsck -${_f}p $_dev >/dev/null 2>&1; then
echo "FAILED. You must fsck $_dev manually."