summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/utime.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 22:45:51 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-16 22:45:51 +0000
commit9181246072fd4fd7392979bd389a9e6e61aeb6dc (patch)
tree5696e10ef7c48e48681b9d686636af96991d326c /c/src/lib/libc/utime.c
parentAdded handler for fsync. For the memfile it is the same as the data sync. (diff)
downloadrtems-9181246072fd4fd7392979bd389a9e6e61aeb6dc.tar.bz2
Fixed bug.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libc/utime.c6
1 files changed, 3 insertions, 3 deletions
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 );