* src/mount.c per PR290, add check for ops->node_type_h
        * src/mknod.c per PR291, remove erroneous call to freenod
This commit is contained in:
Jennifer Averett
2002-10-23 18:10:27 +00:00
parent 3767e25c9f
commit bf61751c5a
3 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2002-10-23 <strauman@slac.stanford.edu>
* src/mount.c per PR290, add check for ops->node_type_h
* src/mknod.c per PR291, remove erroneous call to freenod
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.

View File

@@ -49,7 +49,6 @@ int mknod(
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
if ( !temp_loc.ops->evalformake_h ) {
rtems_filesystem_freenode( &temp_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}

View File

@@ -135,6 +135,15 @@ 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
*/