From 55ae0e9238e1979f0200700ec5dbd0df8d32f7a2 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Mon, 31 Jan 2011 06:27:35 +0100 Subject: df,find_mount_point: optionally don't ignore rootfs Signed-off-by: Lauri Kasanen Signed-off-by: Denys Vlasenko --- libbb/find_mount_point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/find_mount_point.c') diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c index 361698a6b..56637ad92 100644 --- a/libbb/find_mount_point.c +++ b/libbb/find_mount_point.c @@ -43,7 +43,7 @@ struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) /* rootfs mount in Linux 2.6 exists always, * and it makes sense to always ignore it. * Otherwise people can't reference their "real" root! */ - if (strcmp(mountEntry->mnt_fsname, "rootfs") == 0) + if (ENABLE_FEATURE_SKIP_ROOTFS && strcmp(mountEntry->mnt_fsname, "rootfs") == 0) continue; if (strcmp(name, mountEntry->mnt_dir) == 0 -- cgit v1.2.3