patch-2.1.118 linux/fs/binfmt_aout.c

Next file: linux/fs/binfmt_elf.c
Previous file: linux/fs/bad_inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -318,7 +318,6 @@
 		return -ENOEXEC;
 	}
 
-	current->personality = PER_LINUX;
 	fd_offset = N_TXTOFF(ex);
 
 #ifdef __i386__
@@ -350,6 +349,8 @@
 		return retval;
 
 	/* OK, This is the point of no return */
+	current->personality = PER_LINUX;
+
 #if defined(__sparc__) && !defined(__sparc_v9__)
 	memcpy(&current->tss.core_exec, &ex, sizeof(struct exec));
 #endif
@@ -563,7 +564,7 @@
 }
 
 
-__initfunc(int init_aout_binfmt(void))
+int __init init_aout_binfmt(void)
 {
 	return register_binfmt(&aout_format);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov