mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
Fixed bug.
This commit is contained in:
@@ -26,12 +26,12 @@ int utime(
|
||||
rtems_filesystem_location_info_t temp_loc;
|
||||
int result;
|
||||
|
||||
if ( !temp_loc.ops->utime )
|
||||
set_errno_and_return_minus_one( ENOTSUP );
|
||||
|
||||
if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) )
|
||||
return -1;
|
||||
|
||||
if ( !temp_loc.ops->utime )
|
||||
set_errno_and_return_minus_one( ENOTSUP );
|
||||
|
||||
result = (*temp_loc.ops->utime)( &temp_loc, times->actime, times->modtime );
|
||||
|
||||
rtems_filesystem_freenode( &temp_loc );
|
||||
|
||||
@@ -26,12 +26,12 @@ int utime(
|
||||
rtems_filesystem_location_info_t temp_loc;
|
||||
int result;
|
||||
|
||||
if ( !temp_loc.ops->utime )
|
||||
set_errno_and_return_minus_one( ENOTSUP );
|
||||
|
||||
if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) )
|
||||
return -1;
|
||||
|
||||
if ( !temp_loc.ops->utime )
|
||||
set_errno_and_return_minus_one( ENOTSUP );
|
||||
|
||||
result = (*temp_loc.ops->utime)( &temp_loc, times->actime, times->modtime );
|
||||
|
||||
rtems_filesystem_freenode( &temp_loc );
|
||||
|
||||
Reference in New Issue
Block a user