svn commit: r211014 - stable/7/usr.sbin/boot0cfg
Bruce Cran
brucec at FreeBSD.org
Sat Aug 7 13:02:26 UTC 2010
Author: brucec
Date: Sat Aug 7 13:02:26 2010
New Revision: 211014
URL: http://svn.freebsd.org/changeset/base/211014
Log:
MFC r209469:
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:
stable/7/usr.sbin/boot0cfg/boot0cfg.c
Directory Properties:
stable/7/usr.sbin/boot0cfg/ (props changed)
Modified: stable/7/usr.sbin/boot0cfg/boot0cfg.c
==============================================================================
--- stable/7/usr.sbin/boot0cfg/boot0cfg.c Sat Aug 7 12:58:01 2010 (r211013)
+++ stable/7/usr.sbin/boot0cfg/boot0cfg.c Sat Aug 7 13:02:26 2010 (r211014)
@@ -355,6 +355,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);
}
if (flags != 0)
More information about the svn-src-all
mailing list