Diff between c7523cb988122a9dad6c7026a5bf922e6353021a and a558890eb4a157aa1a5493e0a3949ceee9bda084

Changed Files

File Additions Deletions Status
obexd/plugins/mas.c +1 -1 modified

Full Patch

diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c
index 30e529f..57d9611 100644
--- a/obexd/plugins/mas.c
+++ b/obexd/plugins/mas.c
@@ -632,7 +632,7 @@ static void *message_update_open(const char *name, int oflag, mode_t mode,
 
 	DBG("");
 
-	if (oflag != O_WRONLY) {
+	if (oflag == O_RDONLY) {
 		*err = -EBADR;
 		return NULL;
 	}