[Bug 199366] misc/mc 4.8.14 fails with "Cannot create pipe streams" when running shell commands using the Filtered View menu item on the File menu

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 12 03:30:25 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199366

Ben Woods <woodsb02 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adamw at FreeBSD.org
              Flags|maintainer-feedback?(woodsb |maintainer-feedback+
                   |02 at gmail.com)               |

--- Comment #4 from Ben Woods <woodsb02 at gmail.com> ---
You are correct that mc does not use the PATH environment variable to search
for the executable when performing a Filtered View command.

The filtered view command is run with the mc_popen function in lib/utilunix.c.
This function runs the process with the glib function g_spawn_async_with_pipes,
which by default requires the full path of the executable. Details defined
here:
https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#g-spawn-async-with-pipes

The attached patch adds the G_SPAWN_SEARCH_PATH to the g_spawn_async_with_pipes
function call, which causes mc to use the PATH environment variable to search
for the executable. This fixes/improves this behaviour.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list