From: Natanael Copa Date: Thu, 5 Sep 2013 19:07:51 +0000 (-0400) Subject: lua: fix a bug in the parsing of /proc/mounts X-Git-Tag: lxc-1.0.0.alpha1~1^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2698b46924ab861b1f39fb11560c852d080e7b02;p=thirdparty%2Flxc.git lua: fix a bug in the parsing of /proc/mounts Signed-off-by: Natanael Copa Acked-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/src/lua-lxc/lxc.lua b/src/lua-lxc/lxc.lua index b48eb76f3..05501ecc8 100755 --- a/src/lua-lxc/lxc.lua +++ b/src/lua-lxc/lxc.lua @@ -89,6 +89,9 @@ function cgroup_path_get() while true do local c line = f:read() + if line == nil then + break + end c = line:split(" ", 6) if (c[1] == "cgroup") then cgroup_path = dirname(c[2])