Patch: fix File.setLastModified
Anthony Green
green@redhat.com
Fri Jul 14 05:40:00 GMT 2006
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
More information about the Java-patches
mailing list