summaryrefslogtreecommitdiff
path: root/www/webfs/files/patch-ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/webfs/files/patch-ls.c')
-rw-r--r--www/webfs/files/patch-ls.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/webfs/files/patch-ls.c b/www/webfs/files/patch-ls.c
new file mode 100644
index 000000000000..2f50423700dd
--- /dev/null
+++ b/www/webfs/files/patch-ls.c
@@ -0,0 +1,19 @@
+--- ls.c.orig Thu Oct 18 03:37:27 2001
++++ ls.c Wed Jan 30 08:29:37 2002
+@@ -317,13 +317,13 @@
+ } else if (!S_ISREG(files[i]->s.st_mode)) {
+ len += sprintf(buf+len," -- ");
+ } else if (files[i]->s.st_size < 1024*9) {
+- len += sprintf(buf+len,"%4ld B ",
++ len += sprintf(buf+len,"%4lld B ",
+ files[i]->s.st_size);
+ } else if (files[i]->s.st_size < 1024*1024*9) {
+- len += sprintf(buf+len,"%4ld kB ",
++ len += sprintf(buf+len,"%4lld kB ",
+ files[i]->s.st_size>>10);
+ } else {
+- len += sprintf(buf+len,"%4ld MB ",
++ len += sprintf(buf+len,"%4lld MB ",
+ files[i]->s.st_size>>20);
+ }
+