summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/disk.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-05-31 00:51:57 +0000
committermsmith <msmith@FreeBSD.org>2000-05-31 00:51:57 +0000
commit2dbe92be83d7108aa9708dc52c5aa009e76b3805 (patch)
treef4c9f4edd806690f89d0bae7ab43b8d522f48458 /lib/libdisk/disk.c
parent5f28a02db5e6657d5061b3a95224d4f4d9884230 (diff)
downloadFreeBSD-src-2dbe92be83d7108aa9708dc52c5aa009e76b3805.zip
FreeBSD-src-2dbe92be83d7108aa9708dc52c5aa009e76b3805.tar.gz
/dev/rXXX -> /dev/XXX
This should fix sysinstall and other tools that don't expect the 'r' devices to exist anymore (and thus don't create them).
Diffstat (limited to 'lib/libdisk/disk.c')
-rw-r--r--lib/libdisk/disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index b05571c..48ae3f5 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -66,7 +66,7 @@ Int_Open_Disk(const char *name, u_long size)
#endif
u_long offset = 0;
- strcpy(device,"/dev/r");
+ strcpy(device,"/dev/");
strcat(device,name);
d = (struct disk *)malloc(sizeof *d);
@@ -235,7 +235,7 @@ Int_Open_Disk(const char *name, u_long size)
char pname[20];
int j,k;
- strcpy(pname,"/dev/r");
+ strcpy(pname,"/dev/");
strcat(pname,sname);
j = open(pname,O_RDONLY);
if (j < 0) {
@@ -300,7 +300,7 @@ Int_Open_Disk(const char *name, u_long size)
char pname[20];
int j,k;
- strcpy(pname,"/dev/r");
+ strcpy(pname,"/dev/");
strcat(pname,name);
j = open(pname,O_RDONLY);
if (j < 0) {
OpenPOWER on IntegriCloud