aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-05 04:25:19 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-05 04:25:19 +0100
commita7329667b4c19fbe8ba077062f14a96038c094db (patch)
treed9a7b98355e92523c444345e397d97670d83dfd4 /coreutils/df.c
parent14b0f4feb3648378acb5eba12c8fcd8fa291b231 (diff)
downloadbusybox-w32-a7329667b4c19fbe8ba077062f14a96038c094db.tar.gz
busybox-w32-a7329667b4c19fbe8ba077062f14a96038c094db.tar.bz2
busybox-w32-a7329667b4c19fbe8ba077062f14a96038c094db.zip
mount: prevent second mount -a from mounting everything again
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/df.c')
-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;