summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2015-03-27 18:39:57 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-27 18:41:05 +0100
commit3a64b0ccd39c7dbdc2f307ee4098920ac7e14a9e (patch)
tree62785b5409e4e0e3ef6c4259f31993af215f9359 /src/lib/ecore_con
parent940f2e72f934ba1987b3326b7b8655b66d41af9d (diff)
ecore_con: fix ftp upload function to follow documentation.
Summary: While creating a Ecore_con_url object, the url is given in this format "ftp://ftp.example.com". While uploading a file, this function was prefixing "ftp://" to this url which resulted in DNS failure, and upload fail. So corrected the issue. Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2221 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c
index 18fd566e56..05b9d05a71 100644
--- a/src/lib/ecore_con/ecore_con_url.c
+++ b/src/lib/ecore_con/ecore_con_url.c
@@ -933,10 +933,10 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_obj, const char *filename, const cha
933 snprintf(tmp, PATH_MAX, "%s", filename); 933 snprintf(tmp, PATH_MAX, "%s", filename);
934 934
935 if (upload_dir) 935 if (upload_dir)
936 snprintf(url, sizeof(url), "ftp://%s/%s/%s", url_con->url, 936 snprintf(url, sizeof(url), "%s/%s/%s", url_con->url,
937 upload_dir, basename(tmp)); 937 upload_dir, basename(tmp));
938 else 938 else
939 snprintf(url, sizeof(url), "ftp://%s/%s", url_con->url, 939 snprintf(url, sizeof(url), "%s/%s", url_con->url,
940 basename(tmp)); 940 basename(tmp));
941 941
942 if (!ecore_con_url_url_set(url_obj, url)) 942 if (!ecore_con_url_url_set(url_obj, url))