From 9181246072fd4fd7392979bd389a9e6e61aeb6dc Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 16 Nov 1999 22:45:51 +0000 Subject: Fixed bug. --- c/src/exec/libcsupport/src/utime.c | 6 +++--- c/src/lib/libc/utime.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'c') diff --git a/c/src/exec/libcsupport/src/utime.c b/c/src/exec/libcsupport/src/utime.c index b7987c87b4..dd76882bc0 100644 --- a/c/src/exec/libcsupport/src/utime.c +++ b/c/src/exec/libcsupport/src/utime.c @@ -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 ); diff --git a/c/src/lib/libc/utime.c b/c/src/lib/libc/utime.c index b7987c87b4..dd76882bc0 100644 --- a/c/src/lib/libc/utime.c +++ b/c/src/lib/libc/utime.c @@ -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 ); -- cgit v1.2.3