diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-01-07 16:28:53 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2004-01-07 16:28:53 +0000 |
commit | 732872467d90f574248cfa22e644ff8fd359edc7 (patch) | |
tree | c89d33a8b3c12ccb9e1a0a4bb6adc70dc07913aa /sbin/fdisk | |
parent | 4b61e05ca52398a28eb03b42d1e349308ed2c5c6 (diff) |
Better diagnostic message if we can't open the external MBR file
ok weingart@, tedu@
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/fdisk.c | 4 |
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 { |