diff options
Diffstat (limited to 'util-linux/mkfs_reiser.c')
-rw-r--r-- | util-linux/mkfs_reiser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/mkfs_reiser.c b/util-linux/mkfs_reiser.c index 6e172d6d3..00ce8f1d1 100644 --- a/util-linux/mkfs_reiser.c +++ b/util-linux/mkfs_reiser.c | |||
@@ -168,9 +168,9 @@ int mkfs_reiser_main(int argc UNUSED_PARAM, char **argv) | |||
168 | 168 | ||
169 | // check the device is a block device | 169 | // check the device is a block device |
170 | fd = xopen(argv[0], O_WRONLY | O_EXCL); | 170 | fd = xopen(argv[0], O_WRONLY | O_EXCL); |
171 | fstat(fd, &st); | 171 | xfstat(fd, &st, argv[0]); |
172 | if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_f)) | 172 | if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_f)) |
173 | bb_error_msg_and_die("not a block device"); | 173 | bb_error_msg_and_die("%s: not a block device", argv[0]); |
174 | 174 | ||
175 | // check if it is mounted | 175 | // check if it is mounted |
176 | // N.B. what if we format a file? find_mount_point will return false negative since | 176 | // N.B. what if we format a file? find_mount_point will return false negative since |