8138579: Custom launcher fails to start because of permission problem
Reviewed-by: sspitsyn, dsamersoff
This commit is contained in:
parent
7d1251ff12
commit
64e85130bb
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user