aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2005-05-01 04:14:01 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2005-05-01 04:14:01 +0000
commitcbf1a58f6c28a9811eedc9f1d99fce07f901bc86 (patch)
tree37e6e07476d3d7b8610ec4b2e6fafbf4d33159c4
parentfb4c2dbf4119c4502cb6eaff9e147d699ecdbcee (diff)
Notes
-rw-r--r--sbin/fdisk_pc98/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk_pc98/fdisk.c b/sbin/fdisk_pc98/fdisk.c
index 1a87f4f9543e..b90a4732762c 100644
--- a/sbin/fdisk_pc98/fdisk.c
+++ b/sbin/fdisk_pc98/fdisk.c
@@ -833,7 +833,7 @@ open_disk(int flag)
return -3;
for (i = 0; i < NDOSPART; i++) {
snprintf(buf, sizeof(buf), "%ss%d", disk, i + 1);
- fdw = open(buf, O_RDONLY);
+ fdw = open(buf, rwmode);
if (fdw == -1)
continue;
break;
@@ -852,7 +852,7 @@ open_disk(int flag)
return -3;
for (p = 1; p < 5; p++) {
asprintf(&s, "%ss%d", disk, p);
- fdw = open(s, O_RDONLY);
+ fdw = open(s, rwmode);
free(s);
if (fdw == -1)
continue;