* [PATCH] obexd/ftp: Don't fail if created folder doesn't exist
@ 2016-04-07 11:58 Marek Kasik
0 siblings, 0 replies; only message in thread
From: Marek Kasik @ 2016-04-07 11:58 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Marek Kasik
Don't fail when the folder we are about to create
by org.bluez.obex.FileTransfer1.CreateFolder
doesn't exist before its creation.
Signed-off-by: Marek Kasik <mkasik@redhat.com>
---
obexd/plugins/ftp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/obexd/plugins/ftp.c b/obexd/plugins/ftp.c
index a906527..3ee18a6 100644
--- a/obexd/plugins/ftp.c
+++ b/obexd/plugins/ftp.c
@@ -278,6 +278,8 @@ int ftp_setpath(struct obex_session *os, void *user_data)
DBG("Fullname: %s", fullname);
err = verify_path(fullname);
+ if (err == -ENOENT)
+ goto not_found;
if (err < 0)
goto done;
--
2.7.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-07 11:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 11:58 [PATCH] obexd/ftp: Don't fail if created folder doesn't exist Marek Kasik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).