diff options
author | dillon <dillon@FreeBSD.org> | 2000-04-26 20:58:40 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-04-26 20:58:40 +0000 |
commit | ce08285d5ac062de6a96e6491313b81bea80ecaa (patch) | |
tree | 9c48fa81d6c9503f7a1fd3b5440dc0d58696221e /sys/i386/linux/linux.h | |
parent | c816580dfb530d84c2396d9f0d10a9f8e44d4ea4 (diff) | |
download | FreeBSD-src-ce08285d5ac062de6a96e6491313b81bea80ecaa.zip FreeBSD-src-ce08285d5ac062de6a96e6491313b81bea80ecaa.tar.gz |
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.
Diffstat (limited to 'sys/i386/linux/linux.h')
-rw-r--r-- | sys/i386/linux/linux.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 528a591..3bb4654 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -224,6 +224,8 @@ struct linux_sigframe { extern int bsd_to_linux_signal[]; extern int linux_to_bsd_signal[]; +extern struct sysentvec linux_sysvec; +extern struct sysentvec elf_linux_sysvec; /* * Pluggable ioctl handlers |