diff options
Diffstat (limited to 'cpukit/libcsupport/src/chdir.c')
-rw-r--r-- | cpukit/libcsupport/src/chdir.c | 5 |
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 |