diff options
author | Franck Bui <fbui@suse.com> | 2022-01-18 15:14:12 +0100 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2022-02-04 09:36:45 +0100 |
commit | 05c05dc0a3c09b8bafc4659dde75e6b5fd9343fa (patch) | |
tree | 87ec1b31efbc73d964cc561ef59eb32a662b2357 | |
parent | hwdb: add HP calculators (diff) | |
download | systemd-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.c | 2 |
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; } |