[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] popen fix



popen should call /bin/sh in the absense of a SHELL variable.

Alan.
Index: stdio/popen.c
===================================================================
RCS file: /mint/mintlib/stdio/popen.c,v
retrieving revision 1.3
diff -u -r1.3 popen.c
--- stdio/popen.c	23 Jul 2001 09:42:02 -0000	1.3
+++ stdio/popen.c	30 May 2008 12:56:53 -0000
@@ -42,7 +42,7 @@
 
 	shell = getenv("SHELL");
 	if (!shell)
-		shell = "sh";
+		shell = "/bin/sh";
 
 	/* get space for the new pipe. If we can't get it then that's that */
 	p = (struct _pipe *) malloc(sizeof(struct _pipe));