diff options
author | phk <phk@FreeBSD.org> | 2004-12-18 11:04:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-18 11:04:10 +0000 |
commit | 644cffdbeabf8ba367440bb0fff20806c83a6199 (patch) | |
tree | 956686decc907864654dec10ba4a7fcd31d2b2a3 /usr.sbin/boot0cfg | |
parent | 875f54755520d034bcb26697e0f33d8acb5eee60 (diff) | |
download | FreeBSD-src-644cffdbeabf8ba367440bb0fff20806c83a6199.zip FreeBSD-src-644cffdbeabf8ba367440bb0fff20806c83a6199.tar.gz |
Open device R/W for ioctl modifications.
Diffstat (limited to 'usr.sbin/boot0cfg')
-rw-r--r-- | usr.sbin/boot0cfg/boot0cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index 21f0ce7..6783360 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -270,7 +270,7 @@ write_mbr(const char *fname, int flags, u_int8_t *mbr, int mbr_size) #ifdef DIOCSMBR for (p = 1; p < 5; p++) { asprintf(&s, "%ss%d", fname, p); - fd = open(s, O_RDONLY); + fd = open(s, O_RDWR); if (fd < 0) { free(s); continue; |