diff options
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r-- | util-linux/mkfs_minix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index ed9cb4512..b154f4ab9 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -292,7 +292,7 @@ static int get_size(const char *file) | |||
292 | int fd; | 292 | int fd; |
293 | long size; | 293 | long size; |
294 | 294 | ||
295 | fd = xopen3(file, O_RDWR, 0); | 295 | fd = xopen(file, O_RDWR); |
296 | if (ioctl(fd, BLKGETSIZE, &size) >= 0) { | 296 | if (ioctl(fd, BLKGETSIZE, &size) >= 0) { |
297 | close(fd); | 297 | close(fd); |
298 | return (size * 512); | 298 | return (size * 512); |
@@ -805,7 +805,7 @@ goodbye: | |||
805 | tmp += dirsize; | 805 | tmp += dirsize; |
806 | *(short *) tmp = 2; | 806 | *(short *) tmp = 2; |
807 | strcpy(tmp + 2, ".badblocks"); | 807 | strcpy(tmp + 2, ".badblocks"); |
808 | DEV = xopen3(device_name, O_RDWR, 0); | 808 | DEV = xopen(device_name, O_RDWR); |
809 | if (fstat(DEV, &statbuf) < 0) | 809 | if (fstat(DEV, &statbuf) < 0) |
810 | bb_error_msg_and_die("unable to stat %s", device_name); | 810 | bb_error_msg_and_die("unable to stat %s", device_name); |
811 | if (!S_ISBLK(statbuf.st_mode)) | 811 | if (!S_ISBLK(statbuf.st_mode)) |