Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.14-pre8 /fs/binfmt_aout.c

Filename:/fs/binfmt_aout.c
Lines Added:5
Lines Deleted:3
Also changed in: (Previous) 2.4.11  2.4.11-pre6  2.4.11-pre5  2.4.11-pre4  2.4.11-pre3  2.4.11-pre2 
(Following) 2.4.14  2.4.29-pre2-bk1  2.4.29-pre2-bk2  2.4.29-pre2-bk3  2.4.29-pre3  2.4.29-pre2-bk4 

Location
[  2.4.14-pre8
  [  fs
     o  binfmt_aout.c

Patch

diff -u --recursive --new-file v2.4.13/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
--- v2.4.13/linux/fs/binfmt_aout.c   Tue Oct  9 17:06:53 2001
+++ linux/fs/binfmt_aout.c   Fri Nov  2 17:39:20 2001
@@ -285,13 +285,15 @@
       return retval;
 
    /* OK, This is the point of no return */
-#if !defined(__sparc__)
-   set_personality(PER_LINUX);
-#else
+#if defined(__alpha__)
+   SET_AOUT_PERSONALITY(bprm, ex);
+#elif defined(__sparc__)
    set_personality(PER_SUNOS);
 #if !defined(__sparc_v9__)
    memcpy(¤t->thread.core_exec, &ex, sizeof(struct exec));
 #endif
+#else
+   set_personality(PER_LINUX);
 #endif
 
    current->mm->end_code = ex.a_text +


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.