[gnome-builder] libide/foundry: check for executable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/foundry: check for executable
- Date: Mon, 25 Apr 2022 21:23:53 +0000 (UTC)
commit 554498a796f44f9f1248b06ba843f48ff467c343
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 25 11:06:38 2022 -0700
libide/foundry: check for executable
We don't care if there is a directory/regular/symlink there. Only that the
file there can actually be executed.
src/libide/foundry/ide-diagnostic-tool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-diagnostic-tool.c b/src/libide/foundry/ide-diagnostic-tool.c
index f25eaa411..0a7ed61d5 100644
--- a/src/libide/foundry/ide-diagnostic-tool.c
+++ b/src/libide/foundry/ide-diagnostic-tool.c
@@ -128,7 +128,7 @@ ide_diagnostic_tool_real_create_launcher (IdeDiagnosticTool *self,
if (local_program_path != NULL)
{
g_autofree char *local_program = g_build_filename (srcdir, local_program_path, NULL);
- if (g_file_test (local_program, G_FILE_TEST_EXISTS))
+ if (g_file_test (local_program, G_FILE_TEST_IS_EXECUTABLE))
program_path = g_steal_pointer (&local_program);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]