Some services have underscores in their name
[aids.git] / lib / aids.rb
index 7f08f70..ab3e4a5 100644 (file)
@@ -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}")