diff options
Diffstat (limited to 'packages/busybox/busybox-1.00/df.patch')
-rw-r--r-- | packages/busybox/busybox-1.00/df.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/packages/busybox/busybox-1.00/df.patch b/packages/busybox/busybox-1.00/df.patch deleted file mode 100644 index 49888293fd..0000000000 --- a/packages/busybox/busybox-1.00/df.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- busybox-1.00/coreutils/df.c.orig 2006-07-14 09:50:47.914912750 -0400 -+++ busybox-1.00/coreutils/df.c 2006-07-14 09:52:32.613456000 -0400 -@@ -60,6 +60,7 @@ - struct statfs s; - static const char hdr_1k[] = "1k-blocks"; /* default display is kilobytes */ - const char *disp_units_hdr = hdr_1k; -+ int root_done = 0; - - #ifdef CONFIG_FEATURE_HUMAN_READABLE - bb_opt_complementaly = "h-km:k-hm:m-hk"; -@@ -125,14 +126,14 @@ - ) / (blocks_used + s.f_bavail); - } - -- if (strcmp(device, "rootfs") == 0) { -- continue; -- } else if (strcmp(device, "/dev/root") == 0) { -+ if (strcmp(device, "/dev/root") == 0 || strcmp(device, "rootfs") == 0) { -+ if (root_done) continue; - /* Adjusts device to be the real root device, - * or leaves device alone if it can't find it */ - if ((device = find_real_root_device_name()) == NULL) { - goto SET_ERROR; - } -+ root_done = 1; - } - - #ifdef CONFIG_FEATURE_HUMAN_READABLE |