summaryrefslogtreecommitdiff
path: root/sbin/fdisk/fdisk.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-27 14:32:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-27 14:32:08 +0000
commit5d9f1b7869e79174359e0ffd40050403a39b0b47 (patch)
treebdb531cb5d4eaf20eb04fca71a85ba6dfdb50d39 /sbin/fdisk/fdisk.c
parenta6beb5ca53233e1f215608b4b3762562ba25424e (diff)
nicer errors
Diffstat (limited to 'sbin/fdisk/fdisk.c')
-rw-r--r--sbin/fdisk/fdisk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index c4c4260a978..20734eb4f64 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.4 1996/09/25 11:24:13 deraadt Exp $ */
+/* $OpenBSD: fdisk.c,v 1.5 1996/09/27 14:32:07 deraadt Exp $ */
/* $NetBSD: fdisk.c,v 1.11 1995/10/04 23:11:19 ghudson Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fdisk.c,v 1.4 1996/09/25 11:24:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: fdisk.c,v 1.5 1996/09/27 14:32:07 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -294,10 +294,10 @@ init_sector0(start)
f = fopen(mbrname, "r");
if (!f)
- errx(1, mbrname);
+ err(1, "cannot open %s", mbrname);
if (fread(mboot.bootinst, sizeof mboot.bootinst, 1, f) != 1)
- errx(1, "fread");
+ err(1, "reading %s", mbrname);
fclose(f);
mboot.signature = BOOT_MAGIC;