summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2004-01-07 16:28:53 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2004-01-07 16:28:53 +0000
commit732872467d90f574248cfa22e644ff8fd359edc7 (patch)
treec89d33a8b3c12ccb9e1a0a4bb6adc70dc07913aa /sbin
parent4b61e05ca52398a28eb03b42d1e349308ed2c5c6 (diff)
Better diagnostic message if we can't open the external MBR file
ok weingart@, tedu@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index e7b8dfc5a40..eb7df39302b 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.37 2003/07/02 21:44:57 deraadt Exp $ */
+/* $OpenBSD: fdisk.c,v 1.38 2004/01/07 16:28:52 tom Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -141,7 +141,7 @@ main(int argc, char *argv[])
/* Parse mbr template, to pass on later */
if ((fd = open(mbrfile, O_RDONLY)) == -1) {
- warn("Can not open MBR file");
+ warn("%s", mbrfile);
warnx("using builtin MBR");
memcpy(mbr_buf, builtin_mbr, sizeof(mbr_buf));
} else {