aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_reiser.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_reiser.c')
-rw-r--r--util-linux/mkfs_reiser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mkfs_reiser.c b/util-linux/mkfs_reiser.c
index f9a0ca82a..00ce8f1d1 100644
--- a/util-linux/mkfs_reiser.c
+++ b/util-linux/mkfs_reiser.c
@@ -4,7 +4,7 @@
4 * 4 *
5 * Busybox'ed (2009) by Vladimir Dronnikov <dronnikov@gmail.com> 5 * Busybox'ed (2009) by Vladimir Dronnikov <dronnikov@gmail.com>
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#include "libbb.h" 9#include "libbb.h"
10#include <linux/fs.h> 10#include <linux/fs.h>
@@ -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