diff options
author | Mario Campos <mario-campos@github.com> | 2024-03-13 07:19:55 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-13 07:19:55 +0100 |
commit | 1797fe18a39d61eb19f19dc868bbc1dd988073a4 (patch) | |
tree | fa4c0afeb215f4083b992a736241e882aaa77bc7 /src/plugins | |
parent | 63733d81d8a79d390ab3cf853c9f13af6ac3d60f (diff) | |
download | weechat-1797fe18a39d61eb19f19dc868bbc1dd988073a4.zip |
fset: replace call to chmod() by fchmod() in the export function
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fset/fset-option.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |