summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_aout.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-08-24 10:32:37 +0000
committerdg <dg@FreeBSD.org>1995-08-24 10:32:37 +0000
commit0af2eee79d716c53af10a0fe3d3d7d63ed157799 (patch)
tree25f0d078906126e97e0cdc172dfa96fb9c1f9527 /sys/kern/imgact_aout.c
parentc5cbc782d337dffb51162e0e9255b7c5eb742bee (diff)
downloadFreeBSD-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.c6
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);
}
OpenPOWER on IntegriCloud