From: Timothy Manning Date: Thu, 7 Oct 2010 02:10:27 +0000 (+1300) Subject: yaffs The yaffs browser's st.st_mode bug has now been fixed X-Git-Tag: linux-mainline-rc-01~14^2~1 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=d2722819ebc5cb10f0de7998709cd7a087ea1301;ds=sidebyside yaffs The yaffs browser's st.st_mode bug has now been fixed the st.st_mode returning 0 for a symlink was caused by: result = yaffs_stat(fullname,byref(st)) been used insted of: result = yaffs_lstat(fullname,byref(st)) changing to the latter fixed this bug. Everything works. Signed-off-by: Timothy Manning --- diff --git a/direct/python/yaffs_browser.py b/direct/python/yaffs_browser.py index 1518843..1239fe2 100755 --- a/direct/python/yaffs_browser.py +++ b/direct/python/yaffs_browser.py @@ -167,7 +167,7 @@ def yaffs_ls(dname): se = sep.contents fullname = dname + se.d_name st = yaffs_stat_struct() - result = yaffs_stat(fullname,byref(st)) + result = yaffs_lstat(fullname,byref(st)) perms = st.st_mode & 0777 ftype = st.st_mode & yaffs_S_IFMT isFile = True if ftype == yaffs_S_IFREG else False