From e3102a2a1210e55d056fbed2ec2e6e642788aee4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 7 Dec 2017 14:42:45 +0100 Subject: [PATCH] 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. --- src/basic/unit-name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2