summaryrefslogtreecommitdiff
path: root/sysutils/cinnamon-settings-daemon/files/patch-plugins_datetime_system-timezone.c
diff options
context:
space:
mode:
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.c22
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,