Commit 2698b469 by Natanael Copa Committed by Stéphane Graber

lua: fix a bug in the parsing of /proc/mounts

parent eee59f94
...@@ -89,6 +89,9 @@ function cgroup_path_get() ...@@ -89,6 +89,9 @@ function cgroup_path_get()
while true do while true do
local c local c
line = f:read() line = f:read()
if line == nil then
break
end
c = line:split(" ", 6) c = line:split(" ", 6)
if (c[1] == "cgroup") then if (c[1] == "cgroup") then
cgroup_path = dirname(c[2]) cgroup_path = dirname(c[2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment