summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-07-20 14:52:12 +0000
committerTed Trask <ttrask01@yahoo.com>2009-07-20 14:52:12 +0000
commit1bf4143ca13acfe1ac8720f980b84943f2f382be (patch)
tree74ae98469fb5bfdaee3d9ac136dd511f34e76346
parent6babfc62e7e096ef0dc7e4e359e3508442d8ff9b (diff)
downloadacf-core-1bf4143ca13acfe1ac8720f980b84943f2f382be.tar.bz2
acf-core-1bf4143ca13acfe1ac8720f980b84943f2f382be.tar.xz
Another bug fix for /lib/processinfo.lua read_initrunlevels to remove blank.v0.8.1
-rw-r--r--Makefile2
-rw-r--r--lib/processinfo.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fa8a2e7..cc45430 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
APP_NAME=core
PACKAGE=acf-$(APP_NAME)
-VERSION=0.8.0
+VERSION=0.8.1
P=$(PACKAGE)-$(VERSION)
DISTDIR:=$(shell pwd)/$(P)
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}