Allow '.' in setting names (for "waits-for.d").
authorDavin McCall <davmac@davmac.org>
Thu, 18 Oct 2018 19:44:57 +0000 (20:44 +0100)
committerDavin McCall <davmac@davmac.org>
Thu, 18 Oct 2018 20:19:29 +0000 (21:19 +0100)
src/includes/load-service.h

index 397b2ccd7095f62dd0d88ab6713972cb33ea1932..b27f9cd9ead41ef1fbed9b5f06d9467efea0f09d 100644 (file)
@@ -91,7 +91,7 @@ inline string read_setting_name(string_iterator & i, string_iterator end)
 
     string rval;
     // Allow alphabetical characters, and dash (-) in setting name
-    while (i != end && (*i == '-' || facet.is(ctype<char>::alpha, *i))) {
+    while (i != end && (*i == '-' || *i == '.' || facet.is(ctype<char>::alpha, *i))) {
         rval += *i;
         ++i;
     }