summaryrefslogtreecommitdiff
path: root/misc/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/util.c')
-rw-r--r--misc/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/util.c b/misc/util.c
index d496c3e5..7cb952f8 100644
--- a/misc/util.c
+++ b/misc/util.c
@@ -154,7 +154,7 @@ void check_mount(const char *device, int force, const char *type)
}
if (mount_flags & EXT2_MF_MOUNTED) {
fprintf(stderr, _("%s is mounted; "), device);
- if (force) {
+ if (force > 2) {
fputs(_("mke2fs forced anyway. Hope /etc/mtab is "
"incorrect.\n"), stderr);
return;
@@ -166,7 +166,7 @@ void check_mount(const char *device, int force, const char *type)
if (mount_flags & EXT2_MF_BUSY) {
fprintf(stderr, _("%s is apparently in use by the system; "),
device);
- if (force) {
+ if (force > 2) {
fputs(_("mke2fs forced anyway.\n"), stderr);
return;
}