diff options
author | Patrick Monnerat <[email protected]> | 2014-11-26 17:38:40 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-04-09 20:34:41 +0200 |
commit | 6a71dd03e3d5c2eecdf6d6fcae50ab53656ff148 (patch) | |
tree | 580ebd3124922b754b5882819b605f63c9ddc176 /icons/16x16 | |
parent | e6a14da0f7946f77e4316a05e051527b54ec1c99 (diff) | |
download | mate-panel-6a71dd03e3d5c2eecdf6d6fcae50ab53656ff148.tar.bz2 mate-panel-6a71dd03e3d5c2eecdf6d6fcae50ab53656ff148.tar.xz |
Resolve relative symlink of /etc/localtime This fixes wrong detection of system timezone under certain circumstances.
Example: in Fedora 20, the environment is a follows:
a) /etc/localtime symlinks --> ../usr/share/zoneinfo/Europe/Zurich
b) /usr/share/zoneinfo contains files with more than 1 hardlink. In example,
Europe/Zurich and Europe/Vaduz share the same i-node.
- system_timezone_read_etc_localtime_softlink() because the link is relative.
- The next algorithms fail because the targeted files do not exist.
- system_timezone_read_etc_localtime_hardlink() succeeds, but finds
Europe/Vaduz before Europe/Zurich.
Thus the detected system timezone is wrong.
By resolving a relative /etc/localtime symlink, this patch leads algorithm
system_timezone_read_etc_localtime_softlink() to success and therefore proper
detection of system timezone.
Closes https://patch-diff.githubusercontent.com/raw/mate-desktop/mate-panel/pull/261.patch
Diffstat (limited to 'icons/16x16')
0 files changed, 0 insertions, 0 deletions