Skip to content
Snippets Groups Projects
Commit 69f72c00 authored by Lixin Yue's avatar Lixin Yue Committed by Jaikumar Ganesh
Browse files

Update OBEX lib setPath Flags handling logic to be compatible with spec.

From IrOBEX, 3.3.6.1, we can see below explanation for Flags bit 1:
1  Don't create directory if it does not exist, return an error instead.
The correct understanding should be: if bit 1 is set to 1, we'll not create
directory if it not exist; if bit 1 is set to 0, we'll create it if it not
exists.
parent c0e32f12
No related branches found
No related tags found
No related merge requests found
......@@ -315,7 +315,7 @@ public final class ServerSession extends ObexSession implements Runnable {
if (!((flags & 1) == 0)) {
backup = true;
}
if ((flags & 2) == 0) {
if (!((flags & 2) == 0)) {
create = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment