summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-08 07:44:57 +0000
committerjkh <jkh@FreeBSD.org>1994-11-08 07:44:57 +0000
commit2b933300e4eac44b758f13784abcc2fdcdad2539 (patch)
tree03425f66f6084a28ea8bf4dee900e237923ef479 /sbin/sysinstall
parent2c19c24df58a26943a915ebe6d52feb6f14d88b2 (diff)
downloadFreeBSD-src-2b933300e4eac44b758f13784abcc2fdcdad2539.zip
FreeBSD-src-2b933300e4eac44b758f13784abcc2fdcdad2539.tar.gz
Change Fatals to Warnings.
Diffstat (limited to 'sbin/sysinstall')
-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 4649bd2..bf841ff 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]);
OpenPOWER on IntegriCloud