aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorEugene Sandulenko2006-04-04 23:44:27 +0000
committerEugene Sandulenko2006-04-04 23:44:27 +0000
commit004a39b3af8cb8ac1725fcea66ea45862419e49d (patch)
tree9fc3a1a78c707e9a84f62afb074838e8c01802ba /backends
parent607ae0bab606f591615b3858fe25b3dec8cf666b (diff)
downloadscummvm-rg350-004a39b3af8cb8ac1725fcea66ea45862419e49d.tar.gz
scummvm-rg350-004a39b3af8cb8ac1725fcea66ea45862419e49d.tar.bz2
scummvm-rg350-004a39b3af8cb8ac1725fcea66ea45862419e49d.zip
Symlinks are also valid files
svn-id: r21615
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/posix/posix-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index 8f66e4aa76..e63517d565 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -145,7 +145,7 @@ FSList POSIXFilesystemNode::listDir(ListMode mode) const {
entry._isValid = (0 == stat(entry._path.c_str(), &st));
entry._isDirectory = S_ISDIR(st.st_mode);
#else
- entry._isValid = (dp->d_type == DT_DIR) || (dp->d_type == DT_REG);
+ entry._isValid = (dp->d_type == DT_DIR) || (dp->d_type == DT_REG) || (dp->d_type == DT_LNK);
entry._isDirectory = (dp->d_type == DT_DIR);
#endif