aboutsummaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'mount.c')
-rw-r--r--mount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mount.c b/mount.c
index 8b5efe14f..4c085d01b 100644
--- a/mount.c
+++ b/mount.c
@@ -208,14 +208,13 @@ extern int mount_main (int argc, char **argv)
208 char *filesystemType = "auto"; 208 char *filesystemType = "auto";
209 char *device = NULL; 209 char *device = NULL;
210 char *directory = NULL; 210 char *directory = NULL;
211 struct stat statBuf;
212 int all = FALSE; 211 int all = FALSE;
213 int fakeIt = FALSE; 212 int fakeIt = FALSE;
214 int useMtab = TRUE; 213 int useMtab = TRUE;
215 int i; 214 int i;
216 215
217 if (stat("/etc/fstab", &statBuf) < 0) 216 /* Only compiled in if BB_MTAB is not defined */
218 fprintf(stderr, "/etc/fstab file missing -- Please install one.\n\n"); 217 whine_if_fstab_is_missing();
219 218
220 if (argc == 1) { 219 if (argc == 1) {
221 FILE *mountTable = setmntent (mtab_file, "r"); 220 FILE *mountTable = setmntent (mtab_file, "r");