summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2022-01-18 15:14:12 +0100
committerFranck Bui <fbui@suse.com>2022-02-04 09:36:45 +0100
commit05c05dc0a3c09b8bafc4659dde75e6b5fd9343fa (patch)
tree87ec1b31efbc73d964cc561ef59eb32a662b2357
parenthwdb: add HP calculators (diff)
downloadsystemd-05c05dc0a3c09b8bafc4659dde75e6b5fd9343fa.tar.xz
systemd-05c05dc0a3c09b8bafc4659dde75e6b5fd9343fa.zip
core: make use of VALID_CHARS_WITH_AT in unit_name_is_valid()
-rw-r--r--src/basic/unit-name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/unit-name.c b/src/basic/unit-name.c
index 671e30a53f..0a4843f458 100644
--- a/src/basic/unit-name.c
+++ b/src/basic/unit-name.c
@@ -57,7 +57,7 @@ bool unit_name_is_valid(const char *n, UnitNameFlags flags) {
if (*i == '@' && !at)
at = i;
- if (!strchr("@" VALID_CHARS, *i))
+ if (!strchr(VALID_CHARS_WITH_AT, *i))
return false;
}