Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix current_zone not working on buildroot+glibc target - refs #846
The layout for timezones, on these targets, is `/usr/share/zoneinfo/posix/Europe/Paris` instead of `/usr/share/zoneinfo/Europe/Paris`. `/usr/share/zoneinfo/Europe/Paris` exists and is a symlink to `/usr/share/zoneinfo/posix/Europe/Paris`. `/etc/localtime` correctly links to `/usr/share/zoneinfo/Europe/Paris`, so `readlink` must be used instead of `realpath`. Signed-off-by: Julien Blanc <[email protected]>
- Loading branch information