From 6584d34e5ac496b8f17efdf7ac5a6a14d4dbce1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Thu, 3 Jul 2014 17:19:46 +0200 Subject: [PATCH] Fix libs/cgroups.bash --- libs/cgroups.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cgroups.bash b/libs/cgroups.bash index e905354..ea1f162 100755 --- a/libs/cgroups.bash +++ b/libs/cgroups.bash @@ -9,7 +9,7 @@ if [ "$PS1" ] ; then cdir=/dev/cgroup fi - if [ -n "$cdir/user" ]; then + if [ -d "$cdir/user" ]; then mkdir -p -m 0700 $cdir/user/$$ > /dev/null 2>&1 /bin/echo $$ > $cdir/user/$$/tasks /bin/echo '1' > $cdir/user/$$/notify_on_release