]> git.ipfire.org Git - thirdparty/systemd.git/commit
time-util: always accept UTC as valid timezone
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Nov 2019 15:53:52 +0000 (16:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Nov 2019 16:05:06 +0000 (17:05 +0100)
commite8b9e9c4705b4bc157ff460371387339977f233b
tree372466d51be9e985ff52c0a8499e4f2b72cb0051
parent5b1733cdae97a5a56fb6973bcdf799662e851de1
time-util: always accept UTC as valid timezone

We already handle it specially in get_timezones(), hence we should OK it
here too, even if the timezone file doesn't actually exist.

Prompted by:

https://serverfault.com/questions/991172/invalid-time-zone-utc

(Yes, Ubuntu should install the UTC timezone data unconditionally: it
should not be an option, even if all other timezone data is excluded,
but since it's our business to validate user input but not out business
to validate distros, let's just accept "UTC" unconditionally, it's magic
after all)
src/basic/time-util.c