From: Charles Manning Date: Mon, 22 Nov 2010 20:55:42 +0000 (+1300) Subject: yaffs direct: Fix yaffs_access to follow symbolic links. X-Git-Tag: linux-mainline-patchset-4~67 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=20eedfb9d60adc929129d28efcd8d7582178be5b yaffs direct: Fix yaffs_access to follow symbolic links. yaffs_access should follow symlinks but did not. Signed-off-by: Charles Manning --- diff --git a/direct/yaffsfs.c b/direct/yaffsfs.c index 0b151a2..2016101 100644 --- a/direct/yaffsfs.c +++ b/direct/yaffsfs.c @@ -1842,6 +1842,7 @@ int yaffs_access(const YCHAR *path, int amode) yaffsfs_Lock(); obj = yaffsfs_FindObject(NULL,path,0,1, &dir,¬Dir); + obj = yaffsfs_FollowLink(obj,0); if(!dir && notDir) yaffsfs_SetError(-ENOTDIR);