fix df -h output (closes: #5290)
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Jul 2009 00:07:19 +0000 (00:07 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 7 Jul 2009 00:07:19 +0000 (00:07 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16723 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/busybox/patches/901-df_human_readable.patch [new file with mode: 0644]

diff --git a/package/busybox/patches/901-df_human_readable.patch b/package/busybox/patches/901-df_human_readable.patch
new file mode 100644 (file)
index 0000000..1dadbac
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/coreutils/df.c
++++ b/coreutils/df.c
+@@ -53,8 +53,8 @@ int df_main(int argc, char **argv)
+               OPT_ALL   = (1 << 2) * ENABLE_FEATURE_DF_FANCY,
+               OPT_INODE = (1 << 3) * ENABLE_FEATURE_DF_FANCY,
+               OPT_BSIZE = (1 << 4) * ENABLE_FEATURE_DF_FANCY,
+-              OPT_HUMAN = (1 << 5) * ENABLE_FEATURE_HUMAN_READABLE,
+-              OPT_MEGA  = (1 << 6) * ENABLE_FEATURE_HUMAN_READABLE,
++              OPT_HUMAN = (1 << (2 + 3*ENABLE_FEATURE_DF_FANCY)) * ENABLE_FEATURE_HUMAN_READABLE,
++              OPT_MEGA  = (1 << (3 + 3*ENABLE_FEATURE_DF_FANCY)) * ENABLE_FEATURE_HUMAN_READABLE,
+       };
+       const char *disp_units_hdr = NULL;
+       char *chp;
This page took 0.025327 seconds and 4 git commands to generate.