8138579: Custom launcher fails to start because of permission problem

Reviewed-by: sspitsyn, dsamersoff
This commit is contained in:
Jaroslav Bachorik 2015-10-08 09:40:31 +02:00
parent 7d1251ff12
commit 64e85130bb

View File

@ -255,8 +255,7 @@ public class CustomLauncherTest {
// 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(