[#2041] Make PlatformDependent.isRoot0() work on solaris

This commit is contained in:
Norman Maurer 2013-12-05 15:43:05 +01:00
parent 920e7a5539
commit b0da45db7a

View File

@ -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;