This patch makes obexftp-0.10.5 work with a SE K500i
phone. It fixes two problems:
Out of the box, obexftp appears to establish a
connection, but any attempt to get a folder listing
fails, with response 44. It turns out that the K500i is
fussy about the null terminator on the end of the type
header. So in obexftp/object.c around line 55 in the
function obexftp_build_get_type I added one to the
string length. This meant I could now get folder listings.
The next problem was that the setpath command was
failing. It seems that in the same file, function
obexftp_build_setpath, there's some confusion over the
two extra bytes inserted into the header. The existing
code is erroneously setting the second reserved byte,
and the k500i doesn't like it.
I've no idea if this breaks compatibility with other