diff --git a/src/nhttpd/yhttpd_mods/mod_sendfile.cpp b/src/nhttpd/yhttpd_mods/mod_sendfile.cpp index 86326e1ae..c0a36ec8c 100644 --- a/src/nhttpd/yhttpd_mods/mod_sendfile.cpp +++ b/src/nhttpd/yhttpd_mods/mod_sendfile.cpp @@ -181,7 +181,7 @@ int CmodSendfile::OpenFile(CyhookHandler *, std::string fullfilename) { int fd = -1; std::string tmpstring; if (fullfilename.length() > 0) { - fd = open(fullfilename.c_str(), O_RDONLY); + fd = open(fullfilename.c_str(), O_RDONLY | O_LARGEFILE); if (fd <= 0) { aprintf("cannot open file %s: ", fullfilename.c_str()); dperror("");