svn commit: r384828 - in head/misc/mc: . files

Adam Weinberger adamw at FreeBSD.org
Mon Apr 27 12:19:47 UTC 2015


Author: adamw
Date: Mon Apr 27 12:19:45 2015
New Revision: 384828
URL: https://svnweb.freebsd.org/changeset/ports/384828

Log:
  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 at ximalas.info
  Patch by:	Ben Woods (maintainer)

Added:
  head/misc/mc/files/patch-lib_utilunix.c   (contents, props changed)
Modified:
  head/misc/mc/Makefile

Modified: head/misc/mc/Makefile
==============================================================================
--- head/misc/mc/Makefile	Mon Apr 27 12:07:36 2015	(r384827)
+++ head/misc/mc/Makefile	Mon Apr 27 12:19:45 2015	(r384828)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mc
 PORTVERSION=	4.8.14
+PORTREVISION=	1
 CATEGORIES=	misc shells
 MASTER_SITES=	http://ftp.midnight-commander.org/ \
 		http://ftp.osuosl.org/pub/midnightcommander/ \

Added: head/misc/mc/files/patch-lib_utilunix.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/mc/files/patch-lib_utilunix.c	Mon Apr 27 12:19:45 2015	(r384828)
@@ -0,0 +1,11 @@
+--- 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",


More information about the svn-ports-all mailing list