]> git.ipfire.org Git - people/ms/systemd.git/commitdiff
relax unit name rules a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jan 2010 05:44:13 +0000 (06:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Jan 2010 05:44:13 +0000 (06:44 +0100)
unit.c
unit.h

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;
diff --git a/unit.h b/unit.h
index a29c50ed97864c1006528939e73eca44486d2dfa..5321d5f1a36950f5e314f5fa6f3c0719b8b3ed4c 100644 (file)
--- a/unit.h
+++ b/unit.h
@@ -23,7 +23,7 @@ typedef enum UnitDependency UnitDependency;
 #include "execute.h"
 #include "util.h"
 
-#define UNIT_NAME_MAX 32
+#define UNIT_NAME_MAX 128
 #define DEFAULT_TIMEOUT_USEC (20*USEC_PER_SEC)
 #define DEFAULT_RESTART_USEC (100*USEC_PER_MSEC)