changeset 14373:3691b2ca322d

8138579: Custom launcher fails to start because of permission problem Reviewed-by: sspitsyn, dsamersoff
author jbachorik
date Thu, 08 Oct 2015 09:40:31 +0200
parents 12c67db03ee7
children 6bacc922bef7 2cdd66d42587
files test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Fri Oct 02 18:49:54 2015 +0200
+++ b/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Thu Oct 08 09:40:31 2015 +0200
@@ -255,8 +255,7 @@
         // and set the executable flag
         Path localLauncherPath = FS.getPath(WORK_DIR, "launcher");
         Files.copy(launcherPath, localLauncherPath,
-                   StandardCopyOption.REPLACE_EXISTING,
-                   StandardCopyOption.COPY_ATTRIBUTES);
+                   StandardCopyOption.REPLACE_EXISTING);
         if (!Files.isExecutable(localLauncherPath)) {
             Set<PosixFilePermission> perms = new HashSet<>(
                 Files.getPosixFilePermissions(