mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
hostnamed: make use of in_charset() to verify charset
This commit is contained in:
@@ -155,7 +155,7 @@ static bool valid_chassis(const char *chassis) {
|
||||
static bool valid_deployment(const char *deployment) {
|
||||
assert(deployment);
|
||||
|
||||
return strspn(deployment, VALID_DEPLOYMENT_CHARS) == strlen(deployment);
|
||||
return in_charset(deployment, VALID_DEPLOYMENT_CHARS);
|
||||
}
|
||||
|
||||
static const char* fallback_chassis(void) {
|
||||
|
||||
Reference in New Issue
Block a user