svn commit: r209469 - head/usr.sbin/boot0cfg
Bruce Cran
brucec at FreeBSD.org
Wed Jun 23 14:28:09 UTC 2010
Author: brucec
Date: Wed Jun 23 14:28:08 2010
New Revision: 209469
URL: http://svn.freebsd.org/changeset/base/209469
Log:
If a device can't be opened, don't keep going but display the error
returned from open() and quit.
PR: bin/81035
Submitted by: Peter Schuller <peter.schuller at infidyne.com>
Approved by: rrs (mentor)
Modified:
head/usr.sbin/boot0cfg/boot0cfg.c
Modified: head/usr.sbin/boot0cfg/boot0cfg.c
==============================================================================
--- head/usr.sbin/boot0cfg/boot0cfg.c Wed Jun 23 14:19:19 2010 (r209468)
+++ head/usr.sbin/boot0cfg/boot0cfg.c Wed Jun 23 14:28:08 2010 (r209469)
@@ -356,6 +356,8 @@ write_mbr(const char *fname, int flags,
if (n != mbr_size)
errx(1, "%s: short write", fname);
return;
+ } else {
+ err(1, "write_mbr: %s", fname);
}
/*
More information about the svn-src-all
mailing list