summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/readlink.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-21 20:12:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-22 07:52:40 +0100
commitc625a641218fbda23582354b3cfc7a7c7a4e4287 (patch)
tree82853d039ebb88fb4e7afe0b572c1d072a3f4d00 /cpukit/libcsupport/src/readlink.c
parentpowerpc: Fix AltiVec VSCR save/restore (diff)
downloadrtems-c625a641218fbda23582354b3cfc7a7c7a4e4287.tar.bz2
Filesystem: Delete node type operation
Use the fstat handler instead.
Diffstat (limited to 'cpukit/libcsupport/src/readlink.c')
-rw-r--r--cpukit/libcsupport/src/readlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index a43cb2cdf9..71a9d0d726 100644
--- a/cpukit/libcsupport/src/readlink.c
+++ b/cpukit/libcsupport/src/readlink.c
@@ -34,9 +34,9 @@ ssize_t readlink( const char *__restrict path, char *__restrict buf,
const rtems_filesystem_location_info_t *currentloc =
rtems_filesystem_eval_path_start( &ctx, path, eval_flags );
const rtems_filesystem_operations_table *ops = currentloc->mt_entry->ops;
- rtems_filesystem_node_types_t type = (*ops->node_type_h)( currentloc );
+ mode_t type = rtems_filesystem_location_type( currentloc );
- if ( type == RTEMS_FILESYSTEM_SYM_LINK ) {
+ if ( S_ISLNK( type ) ) {
rv = (*ops->readlink_h)( currentloc, buf, bufsize );
} else {
rtems_filesystem_eval_path_error( &ctx, EINVAL );