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

This commit is contained in:
Norman Maurer 2013-12-05 15:43:05 +01:00
parent 4f6a591e91
commit 04a2249814

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;