aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-11-08 07:44:57 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-11-08 07:44:57 +0000
commit4bb50116ba25b1fdc03031040d81fa54d1b66d76 (patch)
tree03425f66f6084a28ea8bf4dee900e237923ef479
parentada9d061d436acde3b3aebfe1f60b69f9de11f49 (diff)
downloadsrc-4bb50116ba25b1fdc03031040d81fa54d1b66d76.tar.gz
src-4bb50116ba25b1fdc03031040d81fa54d1b66d76.zip
Change Fatals to Warnings.
Notes
Notes: svn path=/head/; revision=4264
-rw-r--r--sbin/sysinstall/mbr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c
index 4649bd2a8478..bf841ffda19b 100644
--- a/sbin/sysinstall/mbr.c
+++ b/sbin/sysinstall/mbr.c
@@ -56,9 +56,9 @@ read_dospart(int fd, struct dos_partition *dp)
{
u_char buf[512];
if (lseek(fd, 0, SEEK_SET) == -1)
- Fatal("Couldn't seek for master boot record read\n");
+ AskAbort("Couldn't seek for master boot record read\n");
if (read(fd, buf, 512) != 512) {
- Fatal("Failed to read master boot record\n");
+ AskAbort("Failed to read master boot record\n");
}
memcpy(dp, buf+DOSPARTOFF, sizeof(*dp)*NDOSPART);
}
@@ -69,21 +69,21 @@ write_dospart(int fd, struct dos_partition *dp)
u_char buf[512];
int flag;
if (lseek(fd, 0, SEEK_SET) == -1)
- Fatal("Couldn't seek for master boot record read\n");
+ AskAbort("Couldn't seek for master boot record read\n");
if (read(fd, buf, 512) != 512) {
- Fatal("Failed to read master boot record\n");
+ AskAbort("Failed to read master boot record\n");
}
memcpy(buf+DOSPARTOFF, dp, sizeof(*dp)*NDOSPART);
if (lseek(fd, 0, SEEK_SET) == -1)
- Fatal("Couldn't seek for master boot record read\n");
+ AskAbort("Couldn't seek for master boot record read\n");
flag=1;
if (ioctl(fd, DIOCWLABEL, &flag) < 0)
- Fatal("Couldn't enable writing of labels");
+ AskAbort("Couldn't enable writing of labels");
if (write(fd, buf, 512) != 512)
- Fatal("Failed to write master boot record\n");
+ AskAbort("Failed to write master boot record\n");
flag=0;
if (ioctl(fd, DIOCWLABEL, &flag) < 0)
- Fatal("Couldn't disable writing of labels");
+ AskAbort("Couldn't disable writing of labels");
}
int
@@ -457,9 +457,9 @@ Fdisk()
flag=1;
enable_label(Dfd[diskno]);
if(ioctl(Dfd[diskno], DIOCSDINFO, Dlbl[diskno]) == -1)
- Fatal("Couldn't set label: %s", strerror(errno));
+ AskAbort("Couldn't set label: %s", strerror(errno));
if(ioctl(Dfd[diskno], DIOCWDINFO, Dlbl[diskno]) == -1)
- Fatal("Couldn't write label: %s", strerror(errno));
+ AskAbort("Couldn't write label: %s", strerror(errno));
flag=0;
disable_label(Dfd[diskno]);