summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/chdir.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/chdir.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/chdir.c')
-rw-r--r--cpukit/libcsupport/src/chdir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c
index 2a1c3c4806..4bcb30075e 100644
--- a/cpukit/libcsupport/src/chdir.c
+++ b/cpukit/libcsupport/src/chdir.c
@@ -30,10 +30,9 @@ int rtems_filesystem_chdir( rtems_filesystem_location_info_t *loc )
int rv = 0;
rtems_filesystem_global_location_t *global_loc =
rtems_filesystem_location_transform_to_global( loc );
- rtems_filesystem_node_types_t type =
- rtems_filesystem_node_type( &global_loc->location );
+ mode_t type = rtems_filesystem_location_type( &global_loc->location );
- if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {
+ if ( S_ISDIR( type ) ) {
rtems_filesystem_global_location_assign(
&rtems_filesystem_current,
global_loc