diff options
author | Nicolas Thill <nico@openwrt.org> | 2009-07-07 00:07:19 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2009-07-07 00:07:19 +0000 |
commit | 131b2429effbb527e28304d2f2ec6129496cb063 (patch) | |
tree | 5e42506fbdc3276a334a32a20754cecddcc30968 /package/busybox | |
parent | 1e9cba3b82d050b82db289e83cec8994625d8e50 (diff) | |
download | upstream-131b2429effbb527e28304d2f2ec6129496cb063.tar.gz upstream-131b2429effbb527e28304d2f2ec6129496cb063.tar.bz2 upstream-131b2429effbb527e28304d2f2ec6129496cb063.zip |
fix df -h output (closes: #5290)
SVN-Revision: 16723
Diffstat (limited to 'package/busybox')
-rw-r--r-- | package/busybox/patches/901-df_human_readable.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/busybox/patches/901-df_human_readable.patch b/package/busybox/patches/901-df_human_readable.patch new file mode 100644 index 0000000000..1dadbac0e2 --- /dev/null +++ b/package/busybox/patches/901-df_human_readable.patch @@ -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; |