summaryrefslogtreecommitdiff
path: root/etc/etc.i386
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-02 22:54:03 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-02 22:54:03 +0000
commit669db5c9bff2a1d3a6f91295f127d1b1ce9a6b5e (patch)
tree38a6f406f556a717da705891054f9125b72a09a2 /etc/etc.i386
parentbc7d90299000345109cf20fb836c16dde94b92d6 (diff)
make more resistant to bad args
Diffstat (limited to 'etc/etc.i386')
-rw-r--r--etc/etc.i386/MAKEDEV10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 7f06e96c037..51a5e8e9d09 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.45 1997/05/22 05:26:42 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.46 1997/06/02 22:54:02 kstailey Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -295,6 +295,10 @@ ccd*|sd*|wd*)
vnd*)
umask 2 ; unit=`expr $i : 'vnd\(.*\)'`
+ if [ -z "$unit" ]; then
+ echo vnd requires a unit number
+ exit 1
+ fi
for name in vnd svnd; do
blk=14; chr=41;
case $name in
@@ -597,5 +601,9 @@ local)
test -s MAKEDEV.local && sh MAKEDEV.local
;;
+*)
+ echo no such device
+ ;;
+
esac
done