summaryrefslogtreecommitdiff
path: root/applets/clock/system-timezone.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-21fix some warningsSorokin Alexei1-4/+3
2015-04-09Use g_path_is_absolute().Patrick Monnerat1-1/+1
2015-04-09Resolve relative symlink of /etc/localtime This fixes wrong detection of ↵Patrick Monnerat1-0/+16
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
2012-11-18fixed incorrect fsf addresses.Steve Zesch1-1/+1
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+1048