projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844e250
)
yaffs direct: Fix yaffs_access to follow symbolic links.
author
Charles Manning
<cdhmanning@gmail.com>
Mon, 22 Nov 2010 20:55:42 +0000
(09:55 +1300)
committer
Charles 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
patch
|
blob
|
history
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index 0b151a2793b4d3fa2bf1d082c57dec4678767721..2016101702021c0796e2e5f83be791e360ce8fed 100644
(file)
--- 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);