diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index 792ea0efe..d200509d0 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