summaryrefslogtreecommitdiffstats
path: root/sbin/newfs
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-05-31 01:00:51 +0000
committermsmith <msmith@FreeBSD.org>2000-05-31 01:00:51 +0000
commitddb63bd92015b8f2106f518b475b300b20a8f4bf (patch)
treeb6023bb9ea2c2f0f6fe10f96dbb5fbdef113c93b /sbin/newfs
parent2d0d9c4581cdaa20a6f62a63fe91c4680fb0c1f9 (diff)
downloadFreeBSD-src-ddb63bd92015b8f2106f518b475b300b20a8f4bf.zip
FreeBSD-src-ddb63bd92015b8f2106f518b475b300b20a8f4bf.tar.gz
Don't try to do anything with the /dev/rXXX device.
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 81dd7a1..cc86950 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) {
OpenPOWER on IntegriCloud