summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-05-13 18:43:11 +0200
committerGitHub <noreply@github.com>2018-05-13 18:43:11 +0200
commit88136bbc9897f506e4b4de21378f523b6099cf41 (patch)
treec784a724998d5754df29e691e9a90a16562654ac /src/network
parentMerge pull request #8959 from yuwata/bash-completion-analyze (diff)
parentbasic: add log_level argument to timezone_is_valid (diff)
downloadsystemd-88136bbc9897f506e4b4de21378f523b6099cf41.tar.xz
systemd-88136bbc9897f506e4b4de21378f523b6099cf41.zip
Merge pull request #8962 from floppym/issue8905
basic: timezone_is_valid: check for magic bytes "TZif"
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index daa30cb8f0..2b03fc254b 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -1012,7 +1012,7 @@ int config_parse_timezone(
if (r < 0)
return r;
- if (!timezone_is_valid(tz)) {
+ if (!timezone_is_valid(tz, LOG_ERR)) {
log_syntax(unit, LOG_ERR, filename, line, 0, "Timezone is not valid, ignoring assignment: %s", rvalue);
free(tz);
return 0;