aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_ext2.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_ext2.c')
-rw-r--r--util-linux/mkfs_ext2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c
index 1c2b3b2e2..6dccd3a5d 100644
--- a/util-linux/mkfs_ext2.c
+++ b/util-linux/mkfs_ext2.c
@@ -221,7 +221,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
221 221
222 // open the device, check the device is a block device 222 // open the device, check the device is a block device
223 xmove_fd(xopen(argv[0], O_WRONLY), fd); 223 xmove_fd(xopen(argv[0], O_WRONLY), fd);
224 fstat(fd, &st); 224 xfstat(fd, &st, argv[0]);
225 if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_F)) 225 if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_F))
226 bb_error_msg_and_die("%s: not a block device", argv[0]); 226 bb_error_msg_and_die("%s: not a block device", argv[0]);
227 227