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:
parent
a4c6b1d565
commit
fdf78c2272
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user