Date: Wed, 26 Apr 2000 13:58:41 -0700 (PDT) From: Matt Dillon <dillon@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/linux imgact_linux.c linux.h linux_sysvec.c src/sys/kern imgact_shell.c kern_exec.c src/sys/sys imgact.h sysent.h Message-ID: <200004262058.NAA84428@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dillon 2000/04/26 13:58:41 PDT Modified files: sys/i386/linux imgact_linux.c linux.h linux_sysvec.c sys/kern imgact_shell.c kern_exec.c sys/sys imgact.h sysent.h Log: Fix #! script exec under linux emulation. If a script is exec'd from a program running under linux emulation, the script binary is checked for in /compat/linux first. Without this patch the wrong script binary (i.e. the FreeBSD binary) will be run instead of the linux binary. For example, #!/bin/sh, thus breaking out of linux compatibility mode. This solves a number of problems people have had installing linux software on FreeBSD boxes. Revision Changes Path 1.36 +1 -3 src/sys/i386/linux/imgact_linux.c 1.42 +3 -1 src/sys/i386/linux/linux.h 1.58 +56 -3 src/sys/i386/linux/linux_sysvec.c 1.22 +2 -6 src/sys/kern/imgact_shell.c 1.110 +38 -29 src/sys/kern/kern_exec.c 1.23 +5 -2 src/sys/sys/imgact.h 1.29 +2 -1 src/sys/sys/sysent.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004262058.NAA84428>