Skip to content

gtimezone: Reject weird /etc/localtime configurations

Ray Strode requested to merge fix-GTimeZone-in-toolbx into main

At the moment, glib assumes that if /etc/localtime is a symlink, that it's a symlink to zoneinfo file.

Toolbx containers add an extra layer of indirection though, making it a symlink to a symlink to a zoneinfo file.

This commit deals with the problem, by performing additional checks on /etc/localtime and ignoring it if those check fail, falling back instead to reading /etc/timezone.

Merge request reports