diff options
Diffstat (limited to 'coreutils/df.c')
-rw-r--r-- | coreutils/df.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/df.c b/coreutils/df.c index dfd6e0b41..e9a865c19 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -44,7 +44,6 @@ int df_main(int argc, char **argv) | |||
44 | FILE *mount_table; | 44 | FILE *mount_table; |
45 | struct mntent *mount_entry; | 45 | struct mntent *mount_entry; |
46 | struct statfs s; | 46 | struct statfs s; |
47 | static const char ignored_mounts[] ALIGN1 = "rootfs\0"; | ||
48 | 47 | ||
49 | enum { | 48 | enum { |
50 | OPT_KILO = (1 << 0), | 49 | OPT_KILO = (1 << 0), |
@@ -120,7 +119,7 @@ int df_main(int argc, char **argv) | |||
120 | mount_point = *argv++; | 119 | mount_point = *argv++; |
121 | if (!mount_point) | 120 | if (!mount_point) |
122 | break; | 121 | break; |
123 | mount_entry = find_mount_point(mount_point, bb_path_mtab_file); | 122 | mount_entry = find_mount_point(mount_point); |
124 | if (!mount_entry) { | 123 | if (!mount_entry) { |
125 | bb_error_msg("%s: can't find mount point", mount_point); | 124 | bb_error_msg("%s: can't find mount point", mount_point); |
126 | set_error: | 125 | set_error: |
@@ -154,8 +153,8 @@ int df_main(int argc, char **argv) | |||
154 | ) / (blocks_used + s.f_bavail); | 153 | ) / (blocks_used + s.f_bavail); |
155 | } | 154 | } |
156 | 155 | ||
157 | /* GNU coreutils 6.10 skip certain mounts, try to be compatible. */ | 156 | /* GNU coreutils 6.10 skips certain mounts, try to be compatible. */ |
158 | if (index_in_strings(device, ignored_mounts) != -1) | 157 | if (strcmp(device, "rootfs") == 0) |
159 | continue; | 158 | continue; |
160 | 159 | ||
161 | #ifdef WHY_WE_DO_IT_FOR_DEV_ROOT_ONLY | 160 | #ifdef WHY_WE_DO_IT_FOR_DEV_ROOT_ONLY |