summaryrefslogtreecommitdiff
path: root/libbb/mtab_file.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-24 05:00:29 +0000
commitbdfd0d78bc44e73d693510e70087857785b3b521 (patch)
tree153a573095afac8d8d0ea857759ecabd77fb28b7 /libbb/mtab_file.c
parent9260fc5552a3ee52eb95823aa6689d52a1ffd33c (diff)
downloadbusybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.gz
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.tar.bz2
busybox-w32-bdfd0d78bc44e73d693510e70087857785b3b521.zip
Major rework of the directory structure and the entire build system.
-Erik
Diffstat (limited to 'libbb/mtab_file.c')
-rw-r--r--libbb/mtab_file.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libbb/mtab_file.c b/libbb/mtab_file.c
index 56f8e06ab..267a13720 100644
--- a/libbb/mtab_file.c
+++ b/libbb/mtab_file.c
@@ -2,9 +2,7 @@
2/* 2/*
3 * Utility routines. 3 * Utility routines.
4 * 4 *
5 * Copyright (C) tons of folks. Tracking down who wrote what 5 * Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
6 * isn't something I'm going to worry about... If you wrote something
7 * here, please feel free to acknowledge your work.
8 * 6 *
9 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -19,10 +17,6 @@
19 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software 18 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 *
23 * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
24 * Permission has been granted to redistribute this code under the GPL.
25 *
26 */ 20 */
27 21
28#include <stdio.h> 22#include <stdio.h>
@@ -31,10 +25,10 @@
31 25
32/* Busybox mount uses either /proc/mounts or /dev/mtab to 26/* Busybox mount uses either /proc/mounts or /dev/mtab to
33 * get the list of currently mounted filesystems */ 27 * get the list of currently mounted filesystems */
34#if defined BB_FEATURE_MTAB_SUPPORT 28#if defined CONFIG_FEATURE_MTAB_SUPPORT
35const char mtab_file[] = "/etc/mtab"; 29const char mtab_file[] = "/etc/mtab";
36#else 30#else
37# if defined BB_FEATURE_USE_DEVPS_PATCH 31# if defined CONFIG_FEATURE_USE_DEVPS_PATCH
38 const char mtab_file[] = "/dev/mtab"; 32 const char mtab_file[] = "/dev/mtab";
39# else 33# else
40 const char mtab_file[] = "/proc/mounts"; 34 const char mtab_file[] = "/proc/mounts";