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>
|
2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* .cvsignore: Reformat.
|
* .cvsignore: Reformat.
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ int mknod(
|
|||||||
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
|
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
|
||||||
|
|
||||||
if ( !temp_loc.ops->evalformake_h ) {
|
if ( !temp_loc.ops->evalformake_h ) {
|
||||||
rtems_filesystem_freenode( &temp_loc );
|
|
||||||
rtems_set_errno_and_return_minus_one( ENOTSUP );
|
rtems_set_errno_and_return_minus_one( ENOTSUP );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -135,13 +135,22 @@ int mount(
|
|||||||
mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
|
mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
|
||||||
goto cleanup_and_bail;
|
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
|
* Test to see if it is a directory
|
||||||
*/
|
*/
|
||||||
|
|
||||||
loc_to_free = &loc;
|
loc_to_free = &loc;
|
||||||
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
|
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
|
||||||
errno = ENOTDIR;
|
errno = ENOTDIR;
|
||||||
goto cleanup_and_bail;
|
goto cleanup_and_bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user