diff -ru --new-file linux-1.0/fs/exec.c linux-1.0-quota+acct/fs/exec.c
--- linux-1.0/fs/exec.c.org	Tue Mar 15 19:20:22 1994
+++ linux-1.0-quota+acct/fs/exec.c	Tue Mar 15 19:18:47 1994
@@ -165,6 +165,7 @@
    if (!filp->f_op->write)
       goto close_coredump;
    has_dumped = 1;
+   current->flags |= PF_DUMPCORE;
    /*
     * Changed the size calculations - should hopefully work better. lbt
     */
@@ -837,6 +838,7 @@
    current->mmap = NULL;
    current->executable = NULL;  /* for OMAGIC files */
    current->sgid = current->egid = bprm->e_gid;
+   current->flags &= ~PF_FORKNOEXEC;
    if (N_MAGIC(ex) == OMAGIC) {
       do_mmap(NULL, 0, ex.a_text + ex.a_data,
          PROT_READ|PROT_WRITE|PROT_EXEC,
