large files
Luc Bastiaenssen <[email protected]> Tue, 07 Jun 2005 17:00:07 +0200
| Newsgroups | gmane.comp.web.sitecopy |
|---|---|
| Message-ID | <[email protected]> |
To get support for large files I've used following compile option as
suggested in previous thread:
export CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
But I also had to tweak 'src/sitestore.c' to avoid "filezize overflow"
message
--- sitestore.c 2005-01-02 13:35:31.000000000 +0100
+++ sitestore.c.new 2005-06-07 16:29:42.646513000 +0200
@@ -335,8 +335,8 @@
}
break;
case SITE_ELM_size:
- doc->stored.size = strtol(cdata, NULL, 10);
- if (doc->stored.size == LONG_MAX) {
+ doc->stored.size = strtoll(cdata, NULL, 10);
+ if (doc->stored.size == LLONG_MAX) {
ne_snprintf(err, sizeof err, _("Size overflow (%s) at line
%d"),
cdata, ne_xml_currentline(doc->parser));
ne_xml_set_error(doc->parser, err);
_______________________________________________
sitecopy maillist - [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy