diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-12-22 19:39:11 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-22 19:41:57 +0100 |
commit | 59341019b5ce93f8703004e56a1ca352feeab859 (patch) | |
tree | cb5fd12b012ade63f45d24de3064bcdca690f233 | |
parent | f0bc4cc996c8363d92180c9f60d9e6f1ad1cf7b2 (diff) | |
download | tumbler-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.c | 3 |
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) { |