diff options
Diffstat (limited to 'cpukit/libcsupport/src/getdents.c')
-rw-r--r-- | cpukit/libcsupport/src/getdents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/getdents.c b/cpukit/libcsupport/src/getdents.c index be1969faa4..7008def316 100644 --- a/cpukit/libcsupport/src/getdents.c +++ b/cpukit/libcsupport/src/getdents.c @@ -47,7 +47,7 @@ int getdents( ) { rtems_libio_t *iop; - rtems_filesystem_node_types_t type; + mode_t type; /* * Get the file control block structure associated with the file descriptor @@ -57,8 +57,8 @@ int getdents( /* * Make sure we are working on a directory */ - type = rtems_filesystem_node_type( &iop->pathinfo ); - if ( type != RTEMS_FILESYSTEM_DIRECTORY ) + type = rtems_filesystem_location_type( &iop->pathinfo ); + if ( !S_ISDIR( type ) ) rtems_set_errno_and_return_minus_one( ENOTDIR ); /* |