Ticket #315 (closed defect: fixed)
opie-sync ftp URL broken for Qtopia2 connection (latest SVN)
| Reported by: | mkretz | Owned by: | paule |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.21 |
| Component: | Plugin: opie | Version: | 0.19 |
| Severity: | major | Keywords: | |
| Cc: |
Description
Here's the debug output the opie-sync plugin shows on the console: Attempting FTP Connection. ftp://root:Qtopia@192.168.2.199:4242(null)/Applications/addressbook/addressbook.xml
The "(null)" is the problem: apparently the separator_path variable is not set correctly. The following (of course incorrect) patch fixes the connection for me:
@@ -284,12 +284,11 @@
{
fetch_pair* pair = g_list_nth_data(files_to_fetch, t);
- ftpurl = g_strdup_printf("ftp://%s:%s@%s:%u%s%s",
+ ftpurl = g_strdup_printf("ftp://%s:%s@%s:%u/%s",
env->username,
env->password,
env->url,
env->device_port,
- separator_path,
pair->remote_filename);
fd = fopen(pair->local_filename, "w");
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

