diff options
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r-- | util-linux/mkfs_minix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index abfb94226..95499ba17 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * (C) 1991 Linus Torvalds. | 5 | * (C) 1991 Linus Torvalds. |
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | /* | 10 | /* |
@@ -686,8 +686,7 @@ int mkfs_minix_main(int argc UNUSED_PARAM, char **argv) | |||
686 | bb_error_msg_and_die("can't format mounted filesystem"); | 686 | bb_error_msg_and_die("can't format mounted filesystem"); |
687 | 687 | ||
688 | xmove_fd(xopen(G.device_name, O_RDWR), dev_fd); | 688 | xmove_fd(xopen(G.device_name, O_RDWR), dev_fd); |
689 | if (fstat(dev_fd, &statbuf) < 0) | 689 | xfstat(dev_fd, &statbuf, G.device_name); |
690 | bb_error_msg_and_die("can't stat '%s'", G.device_name); | ||
691 | if (!S_ISBLK(statbuf.st_mode)) | 690 | if (!S_ISBLK(statbuf.st_mode)) |
692 | opt &= ~1; // clear -c (check) | 691 | opt &= ~1; // clear -c (check) |
693 | 692 | ||