aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lxc/lxc-ls.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in
index 792ea0e..d200509 100644
--- a/src/lxc/lxc-ls.in
+++ b/src/lxc/lxc-ls.in
@@ -25,7 +25,7 @@ function get_cgroup()
ls "$@" $lxcpath
-active=$(netstat -xl | grep $lxcpath | \
+active=$(netstat -xl 2>/dev/null | grep $lxcpath | \
sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#');
if test -n "$active"; then