diff options
author | dg <dg@FreeBSD.org> | 1995-08-24 10:32:37 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-08-24 10:32:37 +0000 |
commit | 0af2eee79d716c53af10a0fe3d3d7d63ed157799 (patch) | |
tree | 25f0d078906126e97e0cdc172dfa96fb9c1f9527 /sys/kern/imgact_aout.c | |
parent | c5cbc782d337dffb51162e0e9255b7c5eb742bee (diff) | |
download | FreeBSD-src-0af2eee79d716c53af10a0fe3d3d7d63ed157799.zip FreeBSD-src-0af2eee79d716c53af10a0fe3d3d7d63ed157799.tar.gz |
Moved setting of VTEXT flag into the appropriate image activators. This
fixes a bug where linux binaries would get the flag set inappropriately.
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index ed8fce1..719e114 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: imgact_aout.c,v 1.13.2.1 1995/06/04 16:58:44 davidg Exp $ + * $Id: imgact_aout.c,v 1.14 1995/06/11 19:31:33 rgrimes Exp $ */ #include <sys/param.h> @@ -193,6 +193,10 @@ exec_aout_imgact(iparams) iparams->entry_addr = a_out->a_entry; iparams->proc->p_sysent = &aout_sysvec; + + /* Indicate that this file should not be modified */ + iparams->vnodep->v_flag |= VTEXT; + return (0); } |