POSIX conformance

For symbolic links, the length in bytes of the pathname contained in the
symbolic link should be returned in st_size.
This commit is contained in:
Sebastian Huber
2012-02-08 15:54:54 +01:00
parent b9d56ea7cb
commit 62d8a5452c

View File

@@ -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: