From 0c8e2a6580cb83dbca842751fdf672c4f5d2f9bd Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 2 Aug 2000 18:56:25 +0000 Subject: [PATCH] Fixed the "-f" option. -Erik --- mount.c | 4 +--- util-linux/mount.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/mount.c b/mount.c index 9f25e05ce..fc057473f 100644 --- a/mount.c +++ b/mount.c @@ -121,9 +121,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, int status = 0; char *lofile = NULL; -#if defined BB_MTAB if (fakeIt == FALSE) -#endif { #if defined BB_FEATURE_MOUNT_LOOP if (use_loop==TRUE) { @@ -150,7 +148,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, /* If the mount was sucessful, do anything needed, then return TRUE */ - if (status == 0) { + if (status == 0 || fakeIt==TRUE) { #if defined BB_MTAB if (useMtab == TRUE) { diff --git a/util-linux/mount.c b/util-linux/mount.c index 9f25e05ce..fc057473f 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -121,9 +121,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, int status = 0; char *lofile = NULL; -#if defined BB_MTAB if (fakeIt == FALSE) -#endif { #if defined BB_FEATURE_MOUNT_LOOP if (use_loop==TRUE) { @@ -150,7 +148,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype, /* If the mount was sucessful, do anything needed, then return TRUE */ - if (status == 0) { + if (status == 0 || fakeIt==TRUE) { #if defined BB_MTAB if (useMtab == TRUE) { -- 2.25.1