projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5955e
)
du: document incompatibility with standard tool
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 14 Dec 2012 16:14:11 +0000
(17:14 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 14 Dec 2012 16:14:11 +0000
(17:14 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/du.c
patch
|
blob
|
history
diff --git
a/coreutils/du.c
b/coreutils/du.c
index 19a0319f13ee0c6cefaae461dc757227c24ea675..9c6ff880050871fd9834ca007dcbdd5238e8aab0 100644
(file)
--- a/
coreutils/du.c
+++ b/
coreutils/du.c
@@
-89,6
+89,10
@@
struct globals {
#define INIT_G() do { } while (0)
+/* FIXME? coreutils' du rounds sizes up:
+ * for example, 1025k file is shown as "2" by du -m.
+ * We round to nearest.
+ */
static void print(unsigned long long size, const char *filename)
{
/* TODO - May not want to defer error checking here. */