summaryrefslogtreecommitdiff
path: root/mount.c
diff options
context:
space:
mode:
authorEric Andersen1999-11-06 06:07:27 +0000
committerEric Andersen1999-11-06 06:07:27 +0000
commit29d2e362dedf42d60ffebf6756144fb5449e753a (patch)
tree57ba26bdcf5dae8deb91a3d1a9b47bcc140689a0 /mount.c
parentbc3419069494fac078b316ce3a2f6a232c763c3e (diff)
downloadbusybox-29d2e362dedf42d60ffebf6756144fb5449e753a.zip
busybox-29d2e362dedf42d60ffebf6756144fb5449e753a.tar.gz
Fixed ln, df, and removed redundant stuff from mtab.
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 8b5efe1..4c085d0 100644
--- a/mount.c
+++ b/mount.c
@@ -208,14 +208,13 @@ extern int mount_main (int argc, char **argv)
char *filesystemType = "auto";
char *device = NULL;
char *directory = NULL;
- struct stat statBuf;
int all = FALSE;
int fakeIt = FALSE;
int useMtab = TRUE;
int i;
- if (stat("/etc/fstab", &statBuf) < 0)
- fprintf(stderr, "/etc/fstab file missing -- Please install one.\n\n");
+ /* Only compiled in if BB_MTAB is not defined */
+ whine_if_fstab_is_missing();
if (argc == 1) {
FILE *mountTable = setmntent (mtab_file, "r");