From 9070ecdcf778fe141f9eb2c141401ccfd8aee05b Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 22 Sep 2006 16:05:55 +0000 Subject: 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 --- src/core/session.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/session.c b/src/core/session.c index 8934a61a..f3553634 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -110,11 +110,9 @@ static void cmd_upgrade(const char *data) char *binary; if (*data == '\0') - binary = g_strdup(irssi_binary); - else - binary = g_find_program_in_path(data); + data = irssi_binary; - if (binary == NULL) + if ((binary = g_find_program_in_path(data)) == NULL) cmd_return_error(CMDERR_PROGRAM_NOT_FOUND); /* save the session */ -- cgit v1.2.3