Date: Sun, 23 Apr 2000 11:35:14 -0700 (PDT) From: Matthew Dillon <dillon@apollo.backplane.com> To: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Linux emulation scripting fix to be committed to 5.x and 4.x wednesday Message-ID: <200004231835.LAA62963@apollo.backplane.com>
next in thread | raw e-mail | index | archive | help
This is the same patch I put up for review two weeks ago. I got one positive comment back and nothing else, so I presume nobody has a problem with it. I've been running with it for a while but have only tested it with a few linux applications (Java (jre, jdk), and the oracle installer stuff). http://www.backplane.com/FreeBSD4/linux-script-01.diff This patch fixes #! paths in scripts run under linux emulation, causing /compat/linux to be searched for the script binary when the script is exec'd from a program running under emulation. Often linux applications run scripts to do various things. Without this patch these scripts effectively 'break out' of the linux emulation (for example, use the FreeBSD version of /bin/sh instead of the linux version of /bin/sh) which can cause compatibility problems, especially when the scripts run other utilities that they expect to be the linux version rather then FreeBSD version (install, cat, grep, etc...) I intend to commit this to -current and immediately MFC it to -stable. I don't expect there to be any controversy though I'm sure there is a cleaner way to do it. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004231835.LAA62963>