diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index 9ea08b7e2b..ed10d9e749 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -135,13 +135,22 @@ int mount( mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 ) goto cleanup_and_bail; + /* + * Test for node_type_h + */ + + if (!loc.ops->node_type_h) { + errno = ENOTSUP; + goto cleanup_and_bail; + } + /* * Test to see if it is a directory */ loc_to_free = &loc; if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { - errno = ENOTDIR; + errno = ENOTDIR; goto cleanup_and_bail; } |