summaryrefslogtreecommitdiffstats
path: root/src/hostname
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-11 15:37:11 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-11 15:37:11 +0200
commitc2142cf1d1276f4f220bdd9af4ff7a716cc7a305 (patch)
tree1b0ea96055a7f8a8a872b86363ced67517edff75 /src/hostname
parentnss-myhostname: simplify array building a bit (diff)
downloadsystemd-c2142cf1d1276f4f220bdd9af4ff7a716cc7a305.tar.xz
systemd-c2142cf1d1276f4f220bdd9af4ff7a716cc7a305.zip
hostnamed: make use of in_charset() to verify charset
Diffstat (limited to 'src/hostname')
-rw-r--r--src/hostname/hostnamed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c
index 19ab500533..d826a31da9 100644
--- a/src/hostname/hostnamed.c
+++ b/src/hostname/hostnamed.c
@@ -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) {