From a77c6e01766312bf00f7c4949cdeaaf5532301ce Mon Sep 17 00:00:00 2001 From: green Date: Fri, 14 Jul 2006 18:16:39 +0000 Subject: [PATCH] 2006-07-14 Anthony Green * java/io/natFilePosix.cc (performSetLastModified): Return true on success, false otherwise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115452 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 5 +++++ libjava/java/io/natFilePosix.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 4e17105..667eeae 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2006-07-14 Anthony Green + + * java/io/natFilePosix.cc (performSetLastModified): Return true on + success, false otherwise. + 2006-07-14 Ranjit Mathew * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use diff --git a/libjava/java/io/natFilePosix.cc b/libjava/java/io/natFilePosix.cc index 356fc2e..ff634b0 100644 --- a/libjava/java/io/natFilePosix.cc +++ b/libjava/java/io/natFilePosix.cc @@ -403,7 +403,7 @@ java::io::File::performSetLastModified (jlong time) tb.actime = time / 1000; tb.modtime = time / 1000; - return ::utime (buf, &tb); + return (::utime (buf, &tb) == 0); #else return false; #endif -- 2.7.4