[#2041] Make PlatformDependent.isRoot0() work on solaris
This commit is contained in:
parent
920e7a5539
commit
b0da45db7a
@ -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