1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Andres Garcia pointed out that we searched for a slash badly since it is

converted and thus we must search for backslash on windows
This commit is contained in:
Daniel Stenberg 2004-07-06 15:16:05 +00:00
parent 570455b21d
commit 2a6f9aa155

View File

@ -180,10 +180,16 @@ CURLcode Curl_file_done(struct connectdata *conn,
return CURLE_OK;
}
#if defined(WIN32) || defined(__EMX__)
#define DIRSEP '\\'
#else
#define DIRSEP '/'
#endif
static CURLcode file_upload(struct connectdata *conn)
{
struct FILEPROTO *file = conn->proto.file;
char *dir = strchr(file->path, '/');
char *dir = strchr(file->path, DIRSEP);
FILE *fp;
CURLcode res=CURLE_OK;
struct SessionHandle *data = conn->data;