Ticket #30 (assigned enhancement)

Opened 7 months ago

Last modified 3 months ago

exit with error code when a transfer fails

Reported by: zany Owned by: zany
Priority: blocker Milestone:
Component: obexftp Version:
Keywords: Cc: manuel@…

Description

From sf user summetj: ObexFTP fails with an exit code of 1 if it is not able to find a specified bluetooth client.

However, if it DOES find the client, and starts a transfer, but the (put) transfer is interrupted half way through, it returns with a success code (0) instead of an error code (1 or something other than 0).

Attachments

errno.patch (1.2 KB) - added by manuelnaranjo 3 months ago.
Add real support for errno

Change History

Changed 3 months ago by manuelnaranjo

Add real support for errno

Changed 3 months ago by manuelnaranjo

  • cc manuel@… added
  • priority changed from minor to blocker
  • type changed from defect to enhancement

This patch I just added (errno.patch) adds real support for errno.

Commit #223 added some support for errno and exit but was missing some parts, this patch adds a real non zero retval when something weird has happened. And it's using errno as retval instead of the function retval which doesn't mean anything in most cases.

For questions please contact me on mail

Changed 3 months ago by zany

  • owner changed from somebody to zany
  • status changed from new to assigned

Looks good. Thanks Manuel! The whole error code hiding in OpenOBEX needs some love still. I'll get to that someday too ;)

Note: See TracTickets for help on using tickets.