133
133
stat_cache_entry *sce = NULL;
135
135
offset = c->file.start + c->offset;
136
136
/* limit the toSend to 2^31-1 bytes in a chunk */
138
138
((1 << 30) - 1) : c->file.length - c->offset;
142
142
if (-1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) {
143
143
log_error_write(srv, __FILE__, __LINE__, "ss", "open failed: ", strerror(errno));