summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
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
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')
-rw-r--r--lib/libdisk/disk.c6
-rw-r--r--lib/libdisk/tst01.c2
-rw-r--r--lib/libdisk/write_disk.c2
3 files changed, 5 insertions, 5 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) {
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c
index c23169a..9702ff2 100644
--- a/lib/libdisk/tst01.c
+++ b/lib/libdisk/tst01.c
@@ -91,7 +91,7 @@ Scan_Disk(struct disk *d)
u_long l;
int i,j,fd;
- strcpy(device,"/dev/r");
+ strcpy(device,"/dev/");
strcat(device,d->name);
fd = open(device,O_RDWR);
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c
index 3e8ad8a..2d15434 100644
--- a/lib/libdisk/write_disk.c
+++ b/lib/libdisk/write_disk.c
@@ -181,7 +181,7 @@ Write_Disk(struct disk *d1)
int one = 1;
int zero = 0;
- strcpy(device,"/dev/r");
+ strcpy(device,"/dev/");
strcat(device,d1->name);
#ifdef PC98
OpenPOWER on IntegriCloud