From 6ae6426a7485b5835c23aea198b3065f491d918b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 18 Jul 2009 16:22:26 +0200 Subject: fix mountpoint test to not prevemt mkfs_xxx from making image in any file Signed-off-by: Denys Vlasenko --- util-linux/mkfs_vfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux/mkfs_vfat.c') diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c index dff10f9e1..bdd4dd803 100644 --- a/util-linux/mkfs_vfat.c +++ b/util-linux/mkfs_vfat.c @@ -279,7 +279,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv) ) bb_error_msg_and_die("will not try to make filesystem on full-disk device (use -I if wanted)"); // can't work on mounted filesystems - if (find_mount_point(device_name)) + if (find_mount_point(device_name, 0)) bb_error_msg_and_die("can't format mounted filesystem"); #endif // get true sector size -- cgit v1.2.3