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
|
// and set the executable flag
|
||||||
Path localLauncherPath = FS.getPath(WORK_DIR, "launcher");
|
Path localLauncherPath = FS.getPath(WORK_DIR, "launcher");
|
||||||
Files.copy(launcherPath, localLauncherPath,
|
Files.copy(launcherPath, localLauncherPath,
|
||||||
StandardCopyOption.REPLACE_EXISTING,
|
StandardCopyOption.REPLACE_EXISTING);
|
||||||
StandardCopyOption.COPY_ATTRIBUTES);
|
|
||||||
if (!Files.isExecutable(localLauncherPath)) {
|
if (!Files.isExecutable(localLauncherPath)) {
|
||||||
Set<PosixFilePermission> perms = new HashSet<>(
|
Set<PosixFilePermission> perms = new HashSet<>(
|
||||||
Files.getPosixFilePermissions(
|
Files.getPosixFilePermissions(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user