Skip to content

Commit

Permalink
Update Java version to 21 - remove security manager
Browse files Browse the repository at this point in the history
to fix the build errors
  • Loading branch information
ghentschke committed Apr 19, 2024
1 parent df20f14 commit 23f7020
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ public boolean isRunning() {

private void exec(String[] cmdarray, String[] envp, String dirpath) throws IOException {
String command = cmdarray[0];
SecurityManager s = System.getSecurityManager();
if (s != null)
s.checkExec(command);
// SecurityManager s = System.getSecurityManager();
// if (s != null)
// s.checkExec(command);
if (envp == null)
envp = new String[0];

Expand All @@ -453,9 +453,9 @@ private void exec(String[] cmdarray, String[] envp, String dirpath) throws IOExc

private void exec_pty(String[] cmdarray, String[] envp, String dirpath, final PTY pty) throws IOException {
String command = cmdarray[0];
SecurityManager s = System.getSecurityManager();
if (s != null)
s.checkExec(command);
// SecurityManager s = System.getSecurityManager();
// if (s != null)
// s.checkExec(command);
if (envp == null)
envp = new String[0];

Expand Down Expand Up @@ -491,9 +491,9 @@ protected int waitFor(int pid) {

public void exec_detached(String[] cmdarray, String[] envp, String dirpath) throws IOException {
String command = cmdarray[0];
SecurityManager s = System.getSecurityManager();
if (s != null)
s.checkExec(command);
// SecurityManager s = System.getSecurityManager();
// if (s != null)
// s.checkExec(command);

if (envp == null)
envp = new String[0];
Expand Down

0 comments on commit 23f7020

Please sign in to comment.