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)
This commit is contained in:
Rebecca Cran 2010-06-23 14:28:08 +00:00
parent a4c6b1d565
commit fdf78c2272

View File

@ -356,6 +356,8 @@ write_mbr(const char *fname, int flags, u_int8_t *mbr, int mbr_size)
if (n != mbr_size)
errx(1, "%s: short write", fname);
return;
} else {
err(1, "write_mbr: %s", fname);
}
/*