ports/misc/mc/files/patch-lib_utilunix.c
Adam Weinberger 94b2fc3431 Fix "Cannot create pipe streams" when running shell commands using the Filtered
View menu item on the File menu.

PR:		199366
Reported by:	Trond.Endrestol@ximalas.info
Patch by:	Ben Woods (maintainer)
2015-04-27 12:19:45 +00:00

11 lines
538 B
C

--- lib/utilunix.c.orig 2015-04-12 03:04:27 UTC
+++ lib/utilunix.c
@@ -528,7 +528,7 @@ mc_popen (const char *command, GError **
goto ret_err;
}
- if (!g_spawn_async_with_pipes (NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL,
+ if (!g_spawn_async_with_pipes (NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL,
&p->child_pid, NULL, &p->out.fd, &p->err.fd, error))
{
mc_replace_error (error, MC_PIPE_ERROR_CREATE_PIPE_STREAM, "%s",