summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/rmdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/rmdir.c')
-rw-r--r--cpukit/libcsupport/src/rmdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c
index 50c41d5f74..8aec6f784e 100644
--- a/cpukit/libcsupport/src/rmdir.c
+++ b/cpukit/libcsupport/src/rmdir.c
@@ -43,9 +43,9 @@ int rmdir( const char *path )
parent_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_DIRECTORY ) {
+ if ( S_ISDIR( type ) ) {
if ( !rtems_filesystem_location_is_instance_root( currentloc ) ) {
rv = (*ops->rmnod_h)( &parentloc, currentloc );
} else {