diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-05 13:39:14 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-05 15:06:51 -0700 |
commit | 93c474725c0fb2530f093c106de0bce956544d29 (patch) | |
tree | 9302e649dfa6dce06f17fed666955e938a724dba /src/shared/unit-name.h | |
parent | e05ad7bcc87f652cea321224f8eeb32e21d18e0c (diff) |
core: be more strict when manipulating slices names and unescaping paths from unit names
Let's better be safe then sorry.
Diffstat (limited to 'src/shared/unit-name.h')
-rw-r--r-- | src/shared/unit-name.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/unit-name.h b/src/shared/unit-name.h index 057512cbd3..c2f31e3f90 100644 --- a/src/shared/unit-name.h +++ b/src/shared/unit-name.h @@ -161,7 +161,9 @@ static inline int unit_name_mangle(const char *name, UnitNameMangle allow_globs, return unit_name_mangle_with_suffix(name, allow_globs, ".service", ret); } +int slice_build_parent_slice(const char *slice, char **ret); int slice_build_subslice(const char *slice, const char*name, char **subslice); +bool slice_name_is_valid(const char *name); const char *unit_type_to_string(UnitType i) _const_; UnitType unit_type_from_string(const char *s) _pure_; |