summaryrefslogtreecommitdiff
path: root/help/mate-clock/sr
diff options
context:
space:
mode:
authorPatrick Monnerat <[email protected]>2014-11-26 17:38:40 +0100
committerStefano Karapetsas <[email protected]>2015-04-09 20:34:41 +0200
commit6a71dd03e3d5c2eecdf6d6fcae50ab53656ff148 (patch)
tree580ebd3124922b754b5882819b605f63c9ddc176 /help/mate-clock/sr
parente6a14da0f7946f77e4316a05e051527b54ec1c99 (diff)
downloadmate-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 'help/mate-clock/sr')
0 files changed, 0 insertions, 0 deletions