summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libfs/src/imfs/imfs_stat.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:33:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:33:13 +0000
commite5d6705e4631c64c904c29f9358ce1cb1106cdd5 (patch)
tree0e153982cc8362c05a4556c206c74d7db68a05f5 /c/src/exec/libfs/src/imfs/imfs_stat.c
parentPatch from Chris Johns <cjohns@cybertec.com.au> to add fchdir() (diff)
downloadrtems-e5d6705e4631c64c904c29f9358ce1cb1106cdd5.tar.bz2
Patch from Chris Johns <cjohns@cybertec.com.au> to add support for
stat()'ing a symbolic link. This is needed to support the port of the BSD commands like ls to RTEMS.
Diffstat (limited to '')
-rw-r--r--c/src/exec/libfs/src/imfs/imfs_stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_stat.c b/c/src/exec/libfs/src/imfs/imfs_stat.c
index f5858498c1..ac8b183ff2 100644
--- a/c/src/exec/libfs/src/imfs/imfs_stat.c
+++ b/c/src/exec/libfs/src/imfs/imfs_stat.c
@@ -39,6 +39,10 @@ int IMFS_stat(
buf->st_size = the_jnode->info.file.size;
break;
+ case IMFS_SYM_LINK:
+ buf->st_size = 0;
+ break;
+
default:
set_errno_and_return_minus_one( ENOTSUP );
break;