Files.setLastModifiedTime doesn't work
Alan Bateman
Alan.Bateman at oracle.com
Mon May 23 04:35:05 PDT 2011
Michael Hall wrote:
> :
> No idea what you're talking about at the moment Alan. If this is a property? Or something in the jdk source? Be happy to look at it if I know what I'm looking for.
>
>
Try this patch:
diff --git a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
b/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
--- a/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
+++ b/src/solaris/native/sun/nio/fs/UnixNativeDispatcher.c
@@ -552,12 +552,10 @@ Java_sun_nio_fs_UnixNativeDispatcher_fut
times[1].tv_sec = modificationTime / 1000000;
times[1].tv_usec = modificationTime % 1000000;
- if (my_futimesat_func != NULL) {
- RESTARTABLE((*my_futimesat_func)(filedes, NULL, ×[0]), err);
+ RESTARTABLE(futimes(filedes, ×[0]), err);
if (err == -1) {
throwUnixException(env, errno);
}
- }
}
JNIEXPORT jlong JNICALL
More information about the macosx-port-dev
mailing list