get_binfmt_list()

Kai Schulte (sp0005@aixrs1.hrz.uni-essen.de)
Tue, 5 Mar 1996 02:25:07 +0100 (MEZ)


get_binfmt_list() was introduced in 1.3.71, but I'm not sure why this part
has to change:
in fs/exec.c:

for (try=0; try<2; try++) {
- for (fmt = formats ; fmt ; fmt = fmt->next) {
+ for (fmt = get_binfmt_list() ; fmt ; fmt = fmt->next) {
int (*fn)(struct linux_binprm *, struct pt_regs *) = fmt->load_binary;
if (!fn)
continue;

If it really _is_ necessary, get_binfmt_list() should not be declared inside
the #ifdef CONFIG_MODULES.

Kai