diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-08 15:54:54 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-08 15:54:54 +0100 |
commit | 62d8a5452cde0f1e195504f86b4b6acc6d7ee476 (patch) | |
tree | dc652d7938c71260417a47ef52e0fbca7f4ed87f /cpukit | |
parent | Fixed typo (setegid.c was missing) (diff) | |
download | rtems-62d8a5452cde0f1e195504f86b4b6acc6d7ee476.tar.bz2 |
POSIX conformance
For symbolic links, the length in bytes of the pathname contained in the
symbolic link should be returned in st_size.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_stat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_stat.c b/cpukit/libfs/src/imfs/imfs_stat.c index 2b4b2d6eef..5bc1eae579 100644 --- a/cpukit/libfs/src/imfs/imfs_stat.c +++ b/cpukit/libfs/src/imfs/imfs_stat.c @@ -18,6 +18,7 @@ #endif #include <errno.h> +#include <string.h> #include "imfs.h" #include <rtems/libio_.h> #include <rtems/seterr.h> @@ -47,7 +48,7 @@ int IMFS_stat( break; case IMFS_SYM_LINK: - buf->st_size = 0; + buf->st_size = strlen( the_jnode->info.sym_link.name ); break; case IMFS_FIFO: |