forked from Imagelibrary/rtems
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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user