obexftp returns failure exit code incorrectly

Help
Stuart
2009-11-15
2013-05-01
  • Stuart
    Stuart
    2009-11-15

    Have you seen the Debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549623 ?

    obexftp returns a non-zero exit status even when it has succeeded. This breaks all my automatic scripts as then rely on the exit status to tell whether to continue.

    <pre>
    :; obexftp -bluetooth 00:17:xx:xx:xx:xx -list
    Browsing 00:17:E5:0C:EA:70 …
    Connecting..\done
    Tried to connect for 40ms
    Receiving "(null)"…|&lt;?xml version="1.0"?>
    &lt!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd"
      [&lt;!ATTLIST folder mem-type CDATA #IMPLIED>
      &lt;!ATTLIST folder label CDATA #IMPLIED> ]>
    &lt;folder-listing version="1.0">
       &lt;folder name="C:" user-perm="RW" mem-type="DEV" label="Phone memory"/>
    &lt;/folder-listing>done
    Disconnecting../done
    :; echo $?
    255
    </pre>
    The exit code should be 0 as the command worked.

    Could this be fixed? thanks!

     
  • Thanks. Yes, I'm on it. Hendrik already forwarded the report :)