|
|
|
@ -40,11 +40,6 @@
|
|
|
|
|
/* */
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
// enable > 2gb support (LFS)
|
|
|
|
|
|
|
|
|
|
#define _LARGEFILE_SOURCE
|
|
|
|
|
#define _LARGEFILE64_SOURCE
|
|
|
|
|
|
|
|
|
|
#include "ftplib.h"
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
@ -1140,8 +1135,8 @@ int ftplib::FtpXfer(const char *localfile, const char *path, netbuf *nControl, i
|
|
|
|
|
if (typ == FTPLIB_FILE_WRITE) { ac[0] = 'r'; ac[1] = '\0'; }
|
|
|
|
|
if (mode == ftplib::image) ac[1] = 'b';
|
|
|
|
|
|
|
|
|
|
local = fopen64(localfile, ac);
|
|
|
|
|
if (typ == FTPLIB_FILE_WRITE_APPEND) fseeko64(local,mp_netbuf->offset,SEEK_SET);
|
|
|
|
|
local = fopen(localfile, ac);
|
|
|
|
|
if (typ == FTPLIB_FILE_WRITE_APPEND) fseeko(local,mp_netbuf->offset,SEEK_SET);
|
|
|
|
|
|
|
|
|
|
if (local == NULL)
|
|
|
|
|
{
|
|
|
|
|