tests: add some tests for unit_name_is_valid() and related functions
I was surprised to see that foo@bar@bar.service is a valid unit name. Apparently it is according to current code and docs.
This commit is contained in:
@@ -710,7 +710,7 @@ int slice_build_parent_slice(const char *slice, char **ret) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int slice_build_subslice(const char *slice, const char*name, char **ret) {
|
||||
int slice_build_subslice(const char *slice, const char *name, char **ret) {
|
||||
char *subslice;
|
||||
|
||||
assert(slice);
|
||||
|
||||
Reference in New Issue
Block a user