From 60495849ac3e8297ec093c7a8d9dd2579ae730ff Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Sep 2009 11:52:48 +0000 Subject: Yet another bug fix for /lib/processinfo.lua read_initrunlevels for scripts with non-alphanumeric chars. Bumped to 0.8.3 --- Makefile | 2 +- lib/processinfo.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index aad0f0e..f665f76 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ APP_NAME=core PACKAGE=acf-$(APP_NAME) -VERSION=0.8.2 +VERSION=0.8.3 P=$(PACKAGE)-$(VERSION) DISTDIR:=$(shell pwd)/$(P) diff --git a/lib/processinfo.lua b/lib/processinfo.lua index fd554d8..7058b04 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 = string.match(line, "^%s*(%w+)") + local service = string.match(line, "^%s*(%S+)") local runlevels = string.match(line, "|%s*(%S.*)") if service then local runlevel = {} -- cgit v1.2.3