AnsweredAssumed Answered

MFS_SHARING_VIOLATION when opening in "a " mode after open in "r" mode

Question asked by Fabi on Feb 13, 2014
Latest reply on Jan 8, 2015 by Fabi

When I open a file with "r" option, then closing it and opening it again with "a+" mode,

MQX runs in MFS_SHARING_VIOLATION in mfs_open.c:

            // If we are opening to write, the file can't already be opened.
            if ((access == MFS_ACCESS_WRITE_ONLY) || (access == MFS_ACCESS_READ_WRITE)) {
                error_code = MFS_SHARING_VIOLATION;

What's wrong (with my calls)? Any ideas?