]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix tzsetup not installing /etc/localtime for UTC
authorsmh <smh@FreeBSD.org>
Wed, 1 Jun 2016 15:39:11 +0000 (15:39 +0000)
committersmh <smh@FreeBSD.org>
Wed, 1 Jun 2016 15:39:11 +0000 (15:39 +0000)
commit25142bca39748a7b915f04f1eb2c60574acbc556
tree2e26aee88c077b2703a568fd94ef40a37ee8ca4d
parent6b8af183139393d1cbed75c59882de89a48edb90
Fix tzsetup not installing /etc/localtime for UTC

If tzsetup UTC is run then it successfully configured the system for UTC
including installing /etc/localtime however if the user ran just tzsetup
for interactive configuration and select UTC no /etc/localtime was installed
which resulted in failures for utilities which require said file.

Change set_zone_utc to call install_zoneinfo("UTC") to ensure that
/etc/localtime is created for interactive UTC selection.

Users who have previously run tzsetup in interactive mode and select UTC
can install the missing /etc/localtime by running tzsetup -r.

Also correct static miss-match for set_zone_utc.

MFC after: 2 weeks
Relnotes: Yes
Sponsored by: Multiplay
usr.sbin/tzsetup/tzsetup.c