--- old/src/java.base/unix/native/libjava/ProcessImpl_md.c 2020-05-20 18:01:09.319404766 -0700 +++ new/src/java.base/unix/native/libjava/ProcessImpl_md.c 2020-05-20 18:01:08.935397393 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -230,14 +230,7 @@ static const char* defaultPath(void) { -#ifdef __solaris__ - /* These really are the Solaris defaults! */ - return (geteuid() == 0 || getuid() == 0) ? - "/usr/xpg4/bin:/usr/bin:/opt/SUNWspro/bin:/usr/sbin" : - "/usr/xpg4/bin:/usr/bin:/opt/SUNWspro/bin:"; -#else - return ":/bin:/usr/bin"; /* glibc */ -#endif + return ":/bin:/usr/bin"; } static const char* @@ -452,7 +445,6 @@ #endif /* vfork(2) is deprecated on Solaris */ -#ifndef __solaris__ static pid_t vforkChild(ChildStuff *c) { volatile pid_t resultPid; @@ -471,7 +463,6 @@ assert(resultPid != 0); /* childProcess never returns */ return resultPid; } -#endif static pid_t forkChild(ChildStuff *c) { @@ -583,10 +574,8 @@ startChild(JNIEnv *env, jobject process, ChildStuff *c, const char *helperpath) { switch (c->mode) { /* vfork(2) is deprecated on Solaris */ -#ifndef __solaris__ case MODE_VFORK: return vforkChild(c); -#endif case MODE_FORK: return forkChild(c); case MODE_POSIX_SPAWN: