From owner-cvs-all Wed Apr 26 13:58:45 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0E2A337BD83; Wed, 26 Apr 2000 13:58:42 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Received: (from dillon@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA84428; Wed, 26 Apr 2000 13:58:41 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Message-Id: <200004262058.NAA84428@freefall.freebsd.org> From: Matt Dillon Date: Wed, 26 Apr 2000 13:58:41 -0700 (PDT) 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 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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