From b5ea5d95b40315ed9bb21a443480f717092d4981 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jan 2010 06:44:13 +0100 Subject: [PATCH] relax unit name rules a bit --- unit.c | 2 +- unit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unit.c b/unit.c index a5f4ac767..2f39d887f 100644 --- 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 a29c50ed9..5321d5f1a 100644 --- 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) -- 2.30.2