From 644cffdbeabf8ba367440bb0fff20806c83a6199 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 18 Dec 2004 11:04:10 +0000 Subject: Open device R/W for ioctl modifications. --- usr.sbin/boot0cfg/boot0cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/boot0cfg') 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; -- cgit v1.1