summaryrefslogtreecommitdiff
path: root/applets/clock/system-timezone.c
AgeCommit message (Collapse)AuthorFilesLines
2021-02-07Redundant NULL check before freeing a variablerbuj1-19/+9
2020-09-07Remove variableScope warnings reported by cppcheckrbuj1-3/+2
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2019-09-14clock: avoid deprecated g_type_class_add_privateWu Xiaotian1-12/+16
2019-07-05Remove trailing whitespacesLaurent Napias1-7/+7
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