< prev index next >

src/solaris/classes/sun/nio/fs/UnixSecureDirectoryStream.java

Print this page
rev 8219 : 8024900: PPC64: Enable new build on AIX (jdk part)
8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art, erikj
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com

@@ -407,13 +407,15 @@
                             x.rethrowAsIOException(file);
                         }
                     }
                     // update times
                     try {
+                        // Added path of file "fd" for platform ports (only needed on AIX and HPUX)
                         futimes(fd,
                                 lastAccessTime.to(TimeUnit.MICROSECONDS),
-                                lastModifiedTime.to(TimeUnit.MICROSECONDS));
+                                lastModifiedTime.to(TimeUnit.MICROSECONDS),
+                                (file == null) ? ds.directory() : file);
                     } catch (UnixException x) {
                         x.rethrowAsIOException(file);
                     }
                 } finally {
                     if (file != null)
< prev index next >