summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorLauri Kasanen2011-01-31 06:27:35 +0100
committerDenys Vlasenko2011-01-31 06:27:35 +0100
commit55ae0e9238e1979f0200700ec5dbd0df8d32f7a2 (patch)
treea84f49f35110aff62102c808cb983f6fb7bde10f /coreutils
parent625cfd87d9282c9698a02cd6acd870ee0baee407 (diff)
downloadbusybox-55ae0e9238e1979f0200700ec5dbd0df8d32f7a2.zip
busybox-55ae0e9238e1979f0200700ec5dbd0df8d32f7a2.tar.gz
df,find_mount_point: optionally don't ignore rootfs
Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index af9b77b..70fd1f4 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -160,7 +160,7 @@ int df_main(int argc UNUSED_PARAM, char **argv)
}
/* GNU coreutils 6.10 skips certain mounts, try to be compatible. */
- if (strcmp(device, "rootfs") == 0)
+ if (ENABLE_FEATURE_SKIP_ROOTFS && strcmp(device, "rootfs") == 0)
continue;
#ifdef WHY_WE_DO_IT_FOR_DEV_ROOT_ONLY