diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-21 20:12:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-22 07:52:40 +0100 |
commit | c625a641218fbda23582354b3cfc7a7c7a4e4287 (patch) | |
tree | 82853d039ebb88fb4e7afe0b572c1d072a3f4d00 /cpukit/libcsupport/src/chroot.c | |
parent | powerpc: Fix AltiVec VSCR save/restore (diff) | |
download | rtems-c625a641218fbda23582354b3cfc7a7c7a4e4287.tar.bz2 |
Filesystem: Delete node type operation
Use the fstat handler instead.
Diffstat (limited to 'cpukit/libcsupport/src/chroot.c')
-rw-r--r-- | cpukit/libcsupport/src/chroot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/chroot.c b/cpukit/libcsupport/src/chroot.c index e1f83d34ab..b7c2891f6a 100644 --- a/cpukit/libcsupport/src/chroot.c +++ b/cpukit/libcsupport/src/chroot.c @@ -54,12 +54,9 @@ int chroot( const char *path ) if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) { rtems_filesystem_global_location_t *new_root_loc = rtems_filesystem_global_location_obtain( &new_current_loc ); - rtems_filesystem_node_types_t type = - (*new_root_loc->location.mt_entry->ops->node_type_h)( - &new_root_loc->location - ); + mode_t type = rtems_filesystem_location_type( &new_root_loc->location ); - if ( type == RTEMS_FILESYSTEM_DIRECTORY ) { + if ( S_ISDIR( type ) ) { sc = rtems_libio_set_private_env(); if (sc == RTEMS_SUCCESSFUL) { rtems_filesystem_global_location_assign( |