From 271dd3ace83a5f408ae4db83266b4a597dfd4a4e Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 8 Nov 2001 02:14:09 +0000 Subject: [PATCH] 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. --- usr.sbin/vnconfig/vnconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/vnconfig/vnconfig.c b/usr.sbin/vnconfig/vnconfig.c index d0ecf75712ce..169710bfd960 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);