aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/df.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 11a739816..83794ad88 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -167,10 +167,9 @@ int df_main(int argc UNUSED_PARAM, char **argv)
167 continue; 167 continue;
168 168
169#ifdef WHY_WE_DO_IT_FOR_DEV_ROOT_ONLY 169#ifdef WHY_WE_DO_IT_FOR_DEV_ROOT_ONLY
170/* ... and also this is the only user of find_block_device */
171 if (strcmp(device, "/dev/root") == 0) { 170 if (strcmp(device, "/dev/root") == 0) {
172 /* Adjusts device to be the real root device, 171 /* Adjusts device to be the real root device,
173 * or leaves device alone if it can't find it */ 172 * or leaves device alone if it can't find it */
174 device = find_block_device("/"); 173 device = find_block_device("/");
175 if (!device) { 174 if (!device) {
176 goto set_error; 175 goto set_error;