Messages in this thread |  | | | Subject | Re: fs/exec.c and binfmt-xxx in 2.4.14 | | From | Andreas Schwab <> | | Date | 22 Nov 2001 14:31:55 +0100 |
| |
Heinz-Ado Arnolds <Ado.Arnolds@dhm-systems.de> writes:
|> Andreas Ferber wrote: |> > |> > On Wed, Nov 21, 2001 at 05:58:26PM +0100, Heinz-Ado Arnolds wrote: |> > > |> > > When i now try to start an older binary in a.out format, which has a |> > > magic number of 0x010b0064, it is translated with the 'new' code to a |> > > request for "binfmt-0064" instead of "binfmt-267" as expected and |> > > properly handled by modprobe. |> > |> > Then add |> > |> > alias binfmt-0064 binfmt_aout |> > |> > to /etc/modules.conf. Simple, isn't it? |> |> That's a nice idea but I wouldn't rely on the fact that the third |> and the fourth byte of a file are sufficient to identify the type.
Moreover, it is not endian clean. But that was also true for the old scheme.
Andreas.
-- Andreas Schwab "And now for something Andreas.Schwab@suse.de completely different." SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |