mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
This commit is contained in:
@@ -3688,8 +3688,7 @@ command_upgrade (void *data, struct t_gui_buffer *buffer,
|
||||
|
||||
if (argc > 1)
|
||||
{
|
||||
ptr_binary = string_replace (argv_eol[1], "~", getenv ("HOME"));
|
||||
|
||||
ptr_binary = string_expand_home (argv_eol[1]);
|
||||
if (ptr_binary)
|
||||
{
|
||||
/* check if weechat binary is here and executable by user */
|
||||
|
||||
Reference in New Issue
Block a user