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/getdents.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/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 ); /* |