diff options
author | Lixin Yue <L.X.YUE@motorola.com> | 2009-12-10 14:53:41 +0800 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-12-16 17:33:02 -0800 |
commit | 69f72c00a12933f0fde049e8465257745f373d21 (patch) | |
tree | d64de4457f1dec625a79f4f7c371e570f787e582 /obex | |
parent | c0e32f12439e5373dca5879e4eb7e819be7fb417 (diff) | |
download | frameworks_base-69f72c00a12933f0fde049e8465257745f373d21.zip frameworks_base-69f72c00a12933f0fde049e8465257745f373d21.tar.gz frameworks_base-69f72c00a12933f0fde049e8465257745f373d21.tar.bz2 |
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.
Diffstat (limited to 'obex')
-rw-r--r-- | obex/javax/obex/ServerSession.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/obex/javax/obex/ServerSession.java b/obex/javax/obex/ServerSession.java index aca90bb..503d440 100644 --- a/obex/javax/obex/ServerSession.java +++ b/obex/javax/obex/ServerSession.java @@ -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; } |