1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 03:25:27 +03:00

relax unit name rules a bit

This commit is contained in:
Lennart Poettering 2010-01-28 06:44:13 +01:00
parent b19e7dc010
commit b5ea5d95b4
2 changed files with 2 additions and 2 deletions

2
unit.c
View File

@ -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;

2
unit.h
View File

@ -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)