Comment 7 for bug 1650688

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

systemd-timedated at
https://github.com/systemd/systemd/blob/master/src/timedate/timedated.c#L71
calls get_timezone() at
https://github.com/systemd/systemd/blob/master/src/basic/time-util.c#L1292
which explicitly checks the value of the linked file name to "/usr/share/zoneinfo"
which fails and logs the error and doesn't return a valid timezone.

Not sure how to fix short of modifying the readlink util to follow multiple links
https://github.com/systemd/systemd/blob/master/src/basic/fs-util.c#L147

On the other hand, why doesn't the get_timezone code just read the value of /etc/timezone rather than parsing the file pathnames all over again?