Commit 758a21fb authored by Mike Hibler's avatar Mike Hibler

Just can't win: found yet another idiosyncracy with trying to write the MBR

in FreeBSD 5.  Whatever slice you want to apply the DIOCSMBR to, has to be
open RW.
parent 0881bd74
......@@ -139,7 +139,7 @@ main(int argc, char **argv)
for (p = 1; p <= 4; p++) {
snprintf(sstr, sizeof sstr, "%ss%d", disk, p);
fdw = open(sstr, O_RDONLY);
fdw = open(sstr, O_RDWR);
if (fdw >= 0)
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment