8138579: Custom launcher fails to start because of permission problem
Reviewed-by: sspitsyn, dsamersoff
--- a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java Fri Oct 02 18:49:54 2015 +0200
+++ b/jdk/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(