Fixed the "-f" option.
-Erik
This commit is contained in:
parent
fdd5103348
commit
0c8e2a6580
4
mount.c
4
mount.c
@ -121,9 +121,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
char *lofile = NULL;
|
char *lofile = NULL;
|
||||||
|
|
||||||
#if defined BB_MTAB
|
|
||||||
if (fakeIt == FALSE)
|
if (fakeIt == FALSE)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
#if defined BB_FEATURE_MOUNT_LOOP
|
#if defined BB_FEATURE_MOUNT_LOOP
|
||||||
if (use_loop==TRUE) {
|
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 the mount was sucessful, do anything needed, then return TRUE */
|
||||||
if (status == 0) {
|
if (status == 0 || fakeIt==TRUE) {
|
||||||
|
|
||||||
#if defined BB_MTAB
|
#if defined BB_MTAB
|
||||||
if (useMtab == TRUE) {
|
if (useMtab == TRUE) {
|
||||||
|
@ -121,9 +121,7 @@ do_mount(char *specialfile, char *dir, char *filesystemtype,
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
char *lofile = NULL;
|
char *lofile = NULL;
|
||||||
|
|
||||||
#if defined BB_MTAB
|
|
||||||
if (fakeIt == FALSE)
|
if (fakeIt == FALSE)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
#if defined BB_FEATURE_MOUNT_LOOP
|
#if defined BB_FEATURE_MOUNT_LOOP
|
||||||
if (use_loop==TRUE) {
|
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 the mount was sucessful, do anything needed, then return TRUE */
|
||||||
if (status == 0) {
|
if (status == 0 || fakeIt==TRUE) {
|
||||||
|
|
||||||
#if defined BB_MTAB
|
#if defined BB_MTAB
|
||||||
if (useMtab == TRUE) {
|
if (useMtab == TRUE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user