summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-04-19 18:51:28 +0000
committerobrien <obrien@FreeBSD.org>2000-04-19 18:51:28 +0000
commit04946447c6df3d01f842b434f0530b7185b572b0 (patch)
treeb9ced041756706dc6f57de59630b67592ddc796d /lib/libdisk
parent253f2fab6529ab72f62cdb8194269149cd409e54 (diff)
downloadFreeBSD-src-04946447c6df3d01f842b434f0530b7185b572b0.zip
FreeBSD-src-04946447c6df3d01f842b434f0530b7185b572b0.tar.gz
Raw devices are now the normal device name, not prefixed with 'r'.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index 78241f2..8e70d89 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -460,7 +460,7 @@ Disk_Names()
for (j = 0; device_list[j]; j++) {
for (i = 0; i < MAX_NO_DISKS; i++) {
sprintf(diskname, "%s%d", device_list[j], i);
- sprintf(disk, "/dev/r%s", diskname);
+ sprintf(disk, "/dev/%s", diskname);
if (stat(disk, &st) || !(st.st_mode & S_IFCHR))
continue;
if ((fd = open(disk, O_RDWR)) == -1)
OpenPOWER on IntegriCloud