diff --git a/release/sysinstall/devices.c b/release/sysinstall/devices.c index b795db317ce5..529eba598744 100644 --- a/release/sysinstall/devices.c +++ b/release/sysinstall/devices.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: devices.c,v 1.23 1995/05/20 15:47:18 jkh Exp $ + * $Id: devices.c,v 1.24 1995/05/20 15:49:53 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -130,7 +130,7 @@ deviceTry(char *name, char *try) if (fd > 0) return fd; snprintf(try, FILENAME_MAX, "/mnt/dev/%s", name); - fd = open(try, O_RDONLY); + fd = open(try, O_RDWR); return fd; } @@ -226,7 +226,7 @@ deviceGetAll(void) close(fd); deviceRegister(device_names[i].name, device_names[i].description, strdup(try), DEVICE_TYPE_FLOPPY, TRUE, mediaInitFloppy, mediaGetFloppy, mediaCloseFloppy, NULL); - msgDebug("Found a device of type TAPE named: %s\n", device_names[i].name); + msgDebug("Found a device of type floppy named: %s\n", device_names[i].name); } break; diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index fe45a43b1dfa..3321d640e37d 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.37 1995/05/20 14:05:28 jkh Exp $ + * $Id: install.c,v 1.38 1995/05/20 15:47:19 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -277,7 +277,7 @@ cpio_extract(void) tryagain: while (CpioFD == -1) { msgConfirm("Please Insert CPIO floppy in floppy drive 0"); - CpioFD = open("/dev/rfd0", O_RDONLY); + CpioFD = open("/dev/rfd0", O_RDWR); if (CpioFD >= 0) break; msgDebug("Error on open of cpio floppy: %s (%d)\n", strerror(errno), errno); diff --git a/usr.sbin/sade/devices.c b/usr.sbin/sade/devices.c index b795db317ce5..529eba598744 100644 --- a/usr.sbin/sade/devices.c +++ b/usr.sbin/sade/devices.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: devices.c,v 1.23 1995/05/20 15:47:18 jkh Exp $ + * $Id: devices.c,v 1.24 1995/05/20 15:49:53 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -130,7 +130,7 @@ deviceTry(char *name, char *try) if (fd > 0) return fd; snprintf(try, FILENAME_MAX, "/mnt/dev/%s", name); - fd = open(try, O_RDONLY); + fd = open(try, O_RDWR); return fd; } @@ -226,7 +226,7 @@ deviceGetAll(void) close(fd); deviceRegister(device_names[i].name, device_names[i].description, strdup(try), DEVICE_TYPE_FLOPPY, TRUE, mediaInitFloppy, mediaGetFloppy, mediaCloseFloppy, NULL); - msgDebug("Found a device of type TAPE named: %s\n", device_names[i].name); + msgDebug("Found a device of type floppy named: %s\n", device_names[i].name); } break; diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index fe45a43b1dfa..3321d640e37d 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.37 1995/05/20 14:05:28 jkh Exp $ + * $Id: install.c,v 1.38 1995/05/20 15:47:19 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -277,7 +277,7 @@ cpio_extract(void) tryagain: while (CpioFD == -1) { msgConfirm("Please Insert CPIO floppy in floppy drive 0"); - CpioFD = open("/dev/rfd0", O_RDONLY); + CpioFD = open("/dev/rfd0", O_RDWR); if (CpioFD >= 0) break; msgDebug("Error on open of cpio floppy: %s (%d)\n", strerror(errno), errno); diff --git a/usr.sbin/sysinstall/devices.c b/usr.sbin/sysinstall/devices.c index b795db317ce5..529eba598744 100644 --- a/usr.sbin/sysinstall/devices.c +++ b/usr.sbin/sysinstall/devices.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: devices.c,v 1.23 1995/05/20 15:47:18 jkh Exp $ + * $Id: devices.c,v 1.24 1995/05/20 15:49:53 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -130,7 +130,7 @@ deviceTry(char *name, char *try) if (fd > 0) return fd; snprintf(try, FILENAME_MAX, "/mnt/dev/%s", name); - fd = open(try, O_RDONLY); + fd = open(try, O_RDWR); return fd; } @@ -226,7 +226,7 @@ deviceGetAll(void) close(fd); deviceRegister(device_names[i].name, device_names[i].description, strdup(try), DEVICE_TYPE_FLOPPY, TRUE, mediaInitFloppy, mediaGetFloppy, mediaCloseFloppy, NULL); - msgDebug("Found a device of type TAPE named: %s\n", device_names[i].name); + msgDebug("Found a device of type floppy named: %s\n", device_names[i].name); } break; diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index fe45a43b1dfa..3321d640e37d 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.37 1995/05/20 14:05:28 jkh Exp $ + * $Id: install.c,v 1.38 1995/05/20 15:47:19 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -277,7 +277,7 @@ cpio_extract(void) tryagain: while (CpioFD == -1) { msgConfirm("Please Insert CPIO floppy in floppy drive 0"); - CpioFD = open("/dev/rfd0", O_RDONLY); + CpioFD = open("/dev/rfd0", O_RDWR); if (CpioFD >= 0) break; msgDebug("Error on open of cpio floppy: %s (%d)\n", strerror(errno), errno);