From e0f5c5f1767ed0e441e25204ad237f338f05f001 Mon Sep 17 00:00:00 2001 From: Steven McDonald Date: Sun, 14 Oct 2012 13:56:55 +1100 Subject: [PATCH 1/1] Some services have underscores in their name --- lib/aids.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aids.rb b/lib/aids.rb index 7f08f70..ab3e4a5 100644 --- a/lib/aids.rb +++ b/lib/aids.rb @@ -25,7 +25,7 @@ module AIDS raise AIDS::Infection.new("Service name must be a non-empty string, got #{name.inspect}.") end name = $1 if name =~ %r{^/etc/init\.d/(.+)$} - if name =~ /[^[:alnum:]\-.]/ + if name =~ /[^[:alnum:]\-._]/ raise AIDS::Infection.new("Invalid init script name: #{name}.") end unless File.exist?("/etc/init.d/#{name}") -- 2.30.2