diff options
author | Pavel Timofeev <timp87@gmail.com> | 2025-07-13 10:47:06 +0300 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2025-07-13 23:00:41 +0300 |
commit | 474e3be1a020c2e95ad0106f1eb3817c0bac0a3d (patch) | |
tree | 8ca047e5502cf24d3928c3da7778336d43202eb8 /sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c | |
parent | x11/cinnamon-desktop: Update to 6.4.1 (diff) |
sysutils/cinnamon-settings-daemon: Update to 6.4.3
PR: 288177
Diffstat (limited to 'sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c')
-rw-r--r-- | sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c b/sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c new file mode 100644 index 000000000000..161a92d10327 --- /dev/null +++ b/sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c @@ -0,0 +1,22 @@ +--- plugins/datetime/system-timezone.c.orig 2025-07-10 21:28:09 UTC ++++ plugins/datetime/system-timezone.c +@@ -547,11 +547,19 @@ recursive_compare (struct stat *localtime_stat, + CompareFiles compare_func) + { + struct stat file_stat; ++ char *relpath = NULL; + + if (g_stat (file, &file_stat) != 0) + return NULL; + + if (S_ISREG (file_stat.st_mode)) { ++ relpath = system_timezone_strip_path_if_valid (file); ++ if (g_strstr_len (relpath, -1, "/") == NULL) { ++ g_free (relpath); ++ return NULL; ++ } ++ g_free (relpath); ++ + if (compare_func (localtime_stat, + &file_stat, + localtime_content, |