OSDN Git Service

obexd: Fix invalid oflag check
authorSunil Kumar Behera <sunil.behera@samsung.com>
Fri, 17 Aug 2012 09:33:46 +0000 (15:03 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:49:04 +0000 (22:49 +0100)
commita558890eb4a157aa1a5493e0a3949ceee9bda084
treefbc4914df97f50cf0aa7af55fa08d60bd01320e6
parentc7523cb988122a9dad6c7026a5bf922e6353021a
obexd: Fix invalid oflag check

Change logic to check for O_WRONLY, as oflag is
created by an OR operation of O_WRONLY, O_CREAT and
O_TRUNC.
Message update is a PUT function, this check returns
bad response if GET is received.
obexd/plugins/mas.c