yaffs direct: Fix yaffs_access to follow symbolic links.
authorCharles Manning <cdhmanning@gmail.com>
Mon, 22 Nov 2010 20:55:42 +0000 (09:55 +1300)
committerCharles Manning <cdhmanning@gmail.com>
Mon, 22 Nov 2010 20:55:42 +0000 (09:55 +1300)
yaffs_access should follow symlinks but did not.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.c

index 0b151a2..2016101 100644 (file)
@@ -1842,6 +1842,7 @@ int yaffs_access(const YCHAR *path, int amode)
        yaffsfs_Lock();
 
        obj = yaffsfs_FindObject(NULL,path,0,1, &dir,&notDir);
+       obj = yaffsfs_FollowLink(obj,0);
 
        if(!dir && notDir) 
                yaffsfs_SetError(-ENOTDIR);