chiark / gitweb /
relax unit name rules a bit
[elogind.git] / unit.c
diff --git a/unit.c b/unit.c
index a5f4ac76767d1c412db7d166b7d62a3559d860d3..2f39d887fefff6c93474d96776e8616c82b1f5ce 100644 (file)
--- a/unit.c
+++ b/unit.c
@@ -44,7 +44,7 @@ UnitType unit_name_to_type(const char *n) {
         "0123456789"                            \
         "abcdefghijklmnopqrstuvwxyz"            \
         "ABCDEFGHIJKLMNOPQRSTUVWXYZ"            \
-        "-_"
+        "-_.\\"
 
 bool unit_name_is_valid(const char *n) {
         UnitType t;