The check for EROFS was wrong. For example, if you try to mount a filesystem
[oweals/busybox.git] / libbb / mtab_file.c
index 58b0f66e20ecdfc1d0d6faae5f02294815f521ec..abb9b93224b7da47fcc2a40aa40dac06c4f4ef79 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Utility routines.
  *
- * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include "libbb.h"
 
 
-/* Busybox mount uses either /proc/mounts or /etc/mtab to 
- * get the list of currently mounted filesystems */ 
-#if defined CONFIG_FEATURE_MTAB_SUPPORT
-const char bb_path_mtab_file[] = CONFIG_FEATURE_MTAB_FILENAME;
+/* Busybox mount uses either /proc/mounts or /etc/mtab to
+ * get the list of currently mounted filesystems */
+#if defined(CONFIG_FEATURE_MTAB_SUPPORT)
+const char bb_path_mtab_file[] = "/etc/mtab";
 #else
 const char bb_path_mtab_file[] = "/proc/mounts";
 #endif