From 1797fe18a39d61eb19f19dc868bbc1dd988073a4 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Wed, 13 Mar 2024 07:19:55 +0100 Subject: [PATCH] fset: replace call to chmod() by fchmod() in the export function --- src/plugins/fset/fset-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index b8f276555..2ef8c219d 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -1408,7 +1408,7 @@ fset_option_export (const char *filename, int with_help) return 0; } - chmod (filename2, 0600); + fchmod (fileno (file), 0600); hashtable_pointers = weechat_hashtable_new ( 8,