From 1bf4143ca13acfe1ac8720f980b84943f2f382be Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 20 Jul 2009 14:52:12 +0000 Subject: Another bug fix for /lib/processinfo.lua read_initrunlevels to remove blank. --- lib/processinfo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/processinfo.lua b/lib/processinfo.lua index 77dee5b..5400f92 100644 --- a/lib/processinfo.lua +++ b/lib/processinfo.lua @@ -46,7 +46,7 @@ function read_initrunlevels() local cmdresult = f:read("*a") or "" f:close() for line in string.gmatch(cmdresult, "([^\n]*)\n?") do - local service, runlevels = string.match(line, "^%s*(%w+) |%s*(.*)") + local service, runlevels = string.match(line, "^%s*(%w+) |%s*(%S.*)") if service then local runlevel = format.string_to_table(string.gsub(runlevels, "%s+$", ""), "%s+") or {} config[#config+1] = {servicename=service, runlevels=runlevel} -- cgit v1.2.3