From 6801d96c70a1d8c187d296faf199ba4a0f638aa2 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Wed, 31 May 2000 01:00:51 +0000 Subject: [PATCH] Don't try to do anything with the /dev/rXXX device. --- sbin/newfs/newfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 81dd7a14c67e..cc86950a2500 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -406,11 +406,9 @@ main(argc, argv) cp = strrchr(special, '/'); if (cp == 0) { /* - * No path prefix; try /dev/r%s then /dev/%s. + * No path prefix; try /dev/%s. */ - (void)sprintf(device, "%sr%s", _PATH_DEV, special); - if (stat(device, &st) == -1) - (void)sprintf(device, "%s%s", _PATH_DEV, special); + (void)sprintf(device, "%s%s", _PATH_DEV, special); special = device; } if (Nflag) {