This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: fix File.setLastModified
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 13 Jul 2006 22:39:59 -0700
- Subject: Patch: fix File.setLastModified
Found while running the jakarta-commons-io testsuite. Ok for HEAD and
4.1 branch?
AG
2006-07-13 Anthony Green <green@redhat.com>
* java/io/natFilePosix.cc (performSetLastModified): Return true on
success, false otherwise.
Index: java/io/natFilePosix.cc
===================================================================
--- java/io/natFilePosix.cc (revision 115433)
+++ java/io/natFilePosix.cc (working copy)
@@ -403,7 +403,7 @@
tb.actime = time / 1000;
tb.modtime = time / 1000;
- return ::utime (buf, &tb);
+ return (::utime (buf, &tb) == 0);
#else
return false;
#endif