+ Bug when trying to chmod a file in a non-existing directory. The error
+ returned is ENOENT, it should be ENOTDIR
+
+
+
+ There may be a bug with trying to chmoding a file with the mode set to 0.
+ The chmod function does not return an error which means that it is unknown what modes the file is chmoded to.
+ When yaffs_open is used on the file the error EACCES is returned. It is possible that yaffs has changed the mode
+ to read only.
+