--- src/obex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/obex.c b/src/obex.c index b0a4183..59bbe7a 100644 --- a/src/obex.c +++ b/src/obex.c @@ -958,7 +958,7 @@ int obex_put_stream_start(struct obex_session *os, const char *filename) (size_t *) &os->size : NULL, &err); if (os->object == NULL) { error("open(%s): %s (%d)", filename, strerror(-err), -err); - return -EPERM; + return err; } os->path = g_strdup(filename); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html