natFilePosix.cc (performSetLastModified): Return true on success, false otherwise.
authorAnthony Green <green@redhat.com>
Fri, 14 Jul 2006 18:16:39 +0000 (18:16 +0000)
committerAnthony Green <green@gcc.gnu.org>
Fri, 14 Jul 2006 18:16:39 +0000 (18:16 +0000)
2006-07-14  Anthony Green  <green@redhat.com>

* java/io/natFilePosix.cc (performSetLastModified): Return true on
success, false otherwise.

From-SVN: r115452

libjava/ChangeLog
libjava/java/io/natFilePosix.cc

index 4e17105..667eeae 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-14  Anthony Green  <green@redhat.com>
+
+       * java/io/natFilePosix.cc (performSetLastModified): Return true on
+       success, false otherwise.
+
 2006-07-14  Ranjit Mathew  <rmathew@gcc.gnu.org>
 
        * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use
index 356fc2e..ff634b0 100644 (file)
@@ -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