From mint-bounce@lists.fishpool.fi Fri May 30 09:04:38 2008 X-Virus-Scanned: amavisd-new at demon.co.uk Subject: [MiNT] popen fix From: Alan Hourihane To: mint Content-Type: multipart/mixed; boundary="=-tKSxAoo5XnlAFwnl4d3I" Date: Fri, 30 May 2008 13:57:35 +0100 Message-Id: <1212152255.11966.73.camel@jetpack.demon.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: alanh@fairlite.demon.co.uk Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --=-tKSxAoo5XnlAFwnl4d3I Content-Type: text/plain Content-Transfer-Encoding: 7bit popen should call /bin/sh in the absense of a SHELL variable. Alan. --=-tKSxAoo5XnlAFwnl4d3I Content-Disposition: attachment; filename=popen.c.patch Content-Type: text/x-patch; name=popen.c.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit 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)); --=-tKSxAoo5XnlAFwnl4d3I--