Merge branch 'quick_tests'
authorTimothy Manning <tfhmanning@gmail.com>
Fri, 26 Nov 2010 02:13:37 +0000 (15:13 +1300)
committerTimothy Manning <tfhmanning@gmail.com>
Fri, 26 Nov 2010 02:13:37 +0000 (15:13 +1300)
direct/yaffsfs.c

index f6654cf..c7937b0 100644 (file)
@@ -2009,6 +2009,7 @@ int yaffs_chmod(const YCHAR *path, mode_t mode)
        yaffsfs_Lock();
 
        obj = yaffsfs_FindObject(NULL,path,0,1, &dir, &notDir,&loop);
+       obj = yaffsfs_FollowLink(obj,0,&loop);
 
        if(!dir && notDir) 
                yaffsfs_SetError(-ENOTDIR);