mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Revert second hunk of the previous patch, we want to check existence and
execute permission for irssi_binary when upgrading. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4379 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ce7dc49d9f
commit
9070ecdcf7
@ -110,11 +110,9 @@ static void cmd_upgrade(const char *data)
|
|||||||
char *binary;
|
char *binary;
|
||||||
|
|
||||||
if (*data == '\0')
|
if (*data == '\0')
|
||||||
binary = g_strdup(irssi_binary);
|
data = irssi_binary;
|
||||||
else
|
|
||||||
binary = g_find_program_in_path(data);
|
|
||||||
|
|
||||||
if (binary == NULL)
|
if ((binary = g_find_program_in_path(data)) == NULL)
|
||||||
cmd_return_error(CMDERR_PROGRAM_NOT_FOUND);
|
cmd_return_error(CMDERR_PROGRAM_NOT_FOUND);
|
||||||
|
|
||||||
/* save the session */
|
/* save the session */
|
||||||
|
Loading…
Reference in New Issue
Block a user