1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

script: fix move of installed script on another filesystem (closes #1667)

This commit is contained in:
Sébastien Helleu
2021-07-03 16:06:02 +02:00
parent 8a11a18dc5
commit 5253478279
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1287,8 +1287,11 @@ plugin_script_action_install (struct t_weechat_plugin *weechat_plugin,
{
snprintf (new_path, length, "%s/%s/%s",
weechat_data_dir, weechat_plugin->name, base_name);
if (rename (name, new_path) == 0)
if (weechat_file_copy (name, new_path))
{
/* remove old file */
(void) remove (name);
/* make link in autoload dir */
if (autoload)
{