From 3fbe4c80e9b84efde1cd24260749a0b4d1b7eeb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Tue, 29 Jun 2021 10:23:24 +0200 Subject: [PATCH] fix: execute program without argument --- file-browser/src/file_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-browser/src/file_open.c b/file-browser/src/file_open.c index ccfaae01c7b3936e2ac67d900c0a61b65031aac0..f3c58065c7c5825ab99d9be9860bd875c17b23ad 100644 --- a/file-browser/src/file_open.c +++ b/file-browser/src/file_open.c @@ -96,12 +96,12 @@ static opened_file_state_t file_open_text(file_t *file, exec_options_t *options, static opened_file_state_t file_open_executable(file_t *file, exec_options_t *options, fileaccess_state_t state) { opened_file_state_t opened = opened_file_create(); - + if (file->permissions & S_IEXEC) { // executable file_prepare_before_open(); executing_file_or_error_t executing_or_error = - fileaccess_file_execute(state, file, ""); + fileaccess_file_execute(state, file, NULL); if (executing_or_error.error) { opened.error = executing_or_error.error; return opened;