From 758a21fbf60d3b5240894b3d0705c28e226f2ac4 Mon Sep 17 00:00:00 2001 From: Mike Hibler Date: Mon, 19 Sep 2005 23:08:31 +0000 Subject: [PATCH] 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. --- tmcd/dostype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmcd/dostype.c b/tmcd/dostype.c index 4ac590ba2..d56e5c100 100644 --- a/tmcd/dostype.c +++ b/tmcd/dostype.c @@ -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; } -- GitLab