Hi,

I am using obexftp 0.19 and I've noticed a weird behaviour from it:
'obexftp -g' was deleting the files on the device after fetching them,
just like -G does.

Below is a small patch to fix this.

PS: are there plans to make the obexftp version control repository public?

-- 
Eduardo


diff -urN --exclude-from=/tmp/exclude.openobex --exclude obexftp 
obexftp-0.19/apps/obexftp.c obexftp-0.19-fixed/apps/obexftp.c
--- obexftp-0.19/apps/obexftp.c 2006-02-08 19:03:09.000000000 -0200
+++ obexftp-0.19-fixed/apps/obexftp.c   2006-04-23 20:25:10.000000000 -0300
@@ -636,7 +636,7 @@
                                else p = optarg;
                                if (output_file) p = output_file;
                                /* Get file */
-                               if (obexftp_get(cli, p, optarg))
+                               if (obexftp_get(cli, p, optarg) && c == 'G')
                                        (void) obexftp_del(cli, optarg);
                                output_file = NULL;
                        }


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to