From 04a22498148669c5a1c2a8d32e50b2364ef61ae3 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 5 Dec 2013 15:43:05 +0100 Subject: [PATCH] [#2041] Make PlatformDependent.isRoot0() work on solaris --- .../src/main/java/io/netty/util/internal/PlatformDependent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent.java b/common/src/main/java/io/netty/util/internal/PlatformDependent.java index 67f29e83f0..b92df8ba5e 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent.java @@ -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;