diff options
| author | christos <christos@NetBSD.org> | 2001-11-08 02:14:09 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2001-11-08 02:14:09 +0000 |
| commit | 271dd3ace83a5f408ae4db83266b4a597dfd4a4e (patch) | |
| tree | f7af1cce79faf1322587152cee96e912f67e9dd8 /usr.sbin/vnconfig | |
| parent | f30c8426f21cce9145cbecd4fc02316980cb13e9 (diff) | |
Revert previous change that accepts non-raw devices as argument. The
distrib Makefiles have been adjusted appropriately. This change made
block devices and char devices look the same to the naive user, and
it is not appropriate.
Diffstat (limited to 'usr.sbin/vnconfig')
| -rw-r--r-- | usr.sbin/vnconfig/vnconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vnconfig/vnconfig.c b/usr.sbin/vnconfig/vnconfig.c index d0ecf75712c..169710bfd96 100644 --- a/usr.sbin/vnconfig/vnconfig.c +++ b/usr.sbin/vnconfig/vnconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: vnconfig.c,v 1.21 2001/11/07 16:18:03 tron Exp $ */ +/* $NetBSD: vnconfig.c,v 1.22 2001/11/08 02:14:09 christos Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -163,7 +163,7 @@ config(dev, file, geom, action) char rdev[MAXPATHLEN + 1]; int fd, rv; - fd = opendisk(dev, O_RDWR, rdev, sizeof(rdev), 1); + fd = opendisk(dev, O_RDWR, rdev, sizeof(rdev), 0); if (fd < 0) { warn("%s: opendisk", rdev); return (1); |
