diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-07 14:42:45 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | e3102a2a1210e55d056fbed2ec2e6e642788aee4 (patch) | |
tree | 892e6192cdbf2156227b9a16be0f4a0d77f6f783 /src/basic | |
parent | aacb0f10c4ac1a62e3cc203e1427e2f99267d300 (diff) |
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.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/unit-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/unit-name.c b/src/basic/unit-name.c index 85f06126c..113d9bb10 100644 --- a/src/basic/unit-name.c +++ b/src/basic/unit-name.c @@ -716,7 +716,7 @@ int slice_build_parent_slice(const char *slice, char **ret) { } #endif // 0 -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); |