summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2021-12-22 19:39:11 +0100
committerGaël Bonithon <gael@xfce.org>2021-12-22 19:41:57 +0100
commit59341019b5ce93f8703004e56a1ca352feeab859 (patch)
treecb5fd12b012ade63f45d24de3064bcdca690f233
parentf0bc4cc996c8363d92180c9f60d9e6f1ad1cf7b2 (diff)
downloadtumbler-59341019b5ce93f8703004e56a1ca352feeab859.tar.gz
xdg-cache: Set thumbnail permissions to 600
See https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#THUMBSAVE
-rw-r--r--plugins/xdg-cache/xdg-cache-thumbnail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/xdg-cache/xdg-cache-thumbnail.c b/plugins/xdg-cache/xdg-cache-thumbnail.c
index cf2cf58..5fc2bdf 100644
--- a/plugins/xdg-cache/xdg-cache-thumbnail.c
+++ b/plugins/xdg-cache/xdg-cache-thumbnail.c
@@ -392,8 +392,7 @@ xdg_cache_thumbnail_save_image_data (TumblerThumbnail *thumbnail,
g_object_unref (flavor_dir);
/* open a stream to write to (and possibly replace) the temp file */
- stream = g_file_replace (temp_file, NULL, FALSE, G_FILE_CREATE_NONE, cancellable,
- &err);
+ stream = g_file_replace (temp_file, NULL, FALSE, G_FILE_CREATE_PRIVATE, cancellable, &err);
if (stream != NULL)
{