[#2041] Make PlatformDependent.isRoot0() work on solaris
This commit is contained in:
parent
4f6a591e91
commit
04a2249814
@ -324,7 +324,7 @@ public final class PlatformDependent {
|
||||
return false;
|
||||
}
|
||||
|
||||
String[] ID_COMMANDS = { "/usr/bin/id", "/bin/id", "id" };
|
||||
String[] ID_COMMANDS = { "/usr/bin/id", "/bin/id", "id", "/usr/xpg4/bin/id"};
|
||||
Pattern UID_PATTERN = Pattern.compile("^(?:0|[1-9][0-9]*)$");
|
||||
for (String idCmd: ID_COMMANDS) {
|
||||
Process p = null;
|
||||
|
Loading…
Reference in New Issue
Block a user