Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd don't truncate file sizes to 32 bits for direc...
details: https://anonhg.NetBSD.org/src/rev/a10edec6f0ce
branches: trunk
changeset: 332805:a10edec6f0ce
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Oct 10 05:10:59 2014 +0000
description:
don't truncate file sizes to 32 bits for directory indexes.
diffstat:
libexec/httpd/bozohttpd.c | 4 ++--
libexec/httpd/dir-index-bozo.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 40073544e737 -r a10edec6f0ce libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Fri Oct 10 00:49:14 2014 +0000
+++ b/libexec/httpd/bozohttpd.c Fri Oct 10 05:10:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.56 2014/07/17 10:21:51 mrg Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.57 2014/10/10 05:10:59 mrg Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -109,7 +109,7 @@
#define INDEX_HTML "index.html"
#endif
#ifndef SERVER_SOFTWARE
-#define SERVER_SOFTWARE "bozohttpd/20140717"
+#define SERVER_SOFTWARE "bozohttpd/20141009"
#endif
#ifndef DIRECT_ACCESS_FILE
#define DIRECT_ACCESS_FILE ".bzdirect"
diff -r 40073544e737 -r a10edec6f0ce libexec/httpd/dir-index-bozo.c
--- a/libexec/httpd/dir-index-bozo.c Fri Oct 10 00:49:14 2014 +0000
+++ b/libexec/httpd/dir-index-bozo.c Fri Oct 10 05:10:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir-index-bozo.c,v 1.19 2014/01/02 08:21:38 mrg Exp $ */
+/* $NetBSD: dir-index-bozo.c,v 1.20 2014/10/10 05:10:59 mrg Exp $ */
/* $eterna: dir-index-bozo.c,v 1.20 2011/11/18 09:21:15 mrg Exp $ */
@@ -189,8 +189,8 @@
spacebuf[i] = '\0';
bozo_printf(httpd, "%s", spacebuf);
- bozo_printf(httpd, "%7ukB",
- ((unsigned)((unsigned)(sb.st_size) >> 10)));
+ bozo_printf(httpd, "%12llukB",
+ (unsigned long long)sb.st_size >> 10);
}
bozo_printf(httpd, "\r\n");
}
Home |
Main Index |
Thread Index |
Old Index