Fix a bug in the filesystem when a read-write file was being opened in read-only mode. Resolves an issue with Apple App Store guidelines.
Fix a bug in the filesystem when a read-write file was being opened in read-only mode. Resolves an issue with Apple App Store guidelines.

--HG--
branch : v1-8

jhu-lcsr-forks/ogre,vancepym/ogre,vancepym/ogre,vancepym/ogre,jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre,vancepym/ogre,jhu-lcsr-forks/ogre,jhu-lcsr-forks/ogre,vancepym/ogre