[Commits] [SCM] claws branch, master, updated. 4.3.0-30-gb9c9f6396
paul at claws-mail.org
paul at claws-mail.org
Wed Aug 14 08:24:31 UTC 2024
The branch, master has been updated
via b9c9f6396734350b659f1fadd46a238d38ae8ea7 (commit)
from 19269f8c4d3d2c2c277715e7b47d9d81ef2c1978 (commit)
Summary of changes:
src/prefs_common.c | 5 +++++
1 file changed, 5 insertions(+)
- Log -----------------------------------------------------------------
commit b9c9f6396734350b659f1fadd46a238d38ae8ea7
Author: Paul <paul at claws-mail.org>
Date: Wed Aug 14 09:24:27 2024 +0100
set chmod 0600 on history files
completes a4710c470e53b94c4fbd6a409456b95b18110b52
diff --git a/src/prefs_common.c b/src/prefs_common.c
index d2347274c..2b876a308 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -1453,6 +1453,11 @@ static void prefs_common_save_history_to_dir(const gchar *dirname, const gchar *
goto out;
}
+ if (change_file_mode_rw(fp, history) < 0) {
+ FILE_OP_ERROR(history, "chmod");
+ g_warning("can't change file mode: %s", history);
+ }
+
for (cur = list; cur != NULL; cur = cur->next) {
TRY(claws_fputs((gchar *)cur->data, fp) != EOF &&
claws_fputc('\n', fp) != EOF);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list