aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_minix.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r--util-linux/mkfs_minix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 9e826aef3..95499ba17 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -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