]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lua: fix a bug in the parsing of /proc/mounts
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 5 Sep 2013 19:07:51 +0000 (15:07 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Sep 2013 23:57:08 +0000 (19:57 -0400)
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lua-lxc/lxc.lua

index b48eb76f3667b521795754ad947970806c9e639b..05501ecc870205cd13bebe2b3653c17532b33003 100755 (executable)
@@ -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])