X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_flat.c;h=0498b181dd525cc4855b3284353abec948633e7e;hb=8e39df215c4b1d3e6f9e62f92d35ab1aa11104eb;hp=d8a02f1e08ccbc16ba10c0be505d97237f5d21c0;hpb=5b39dba5029108800b94a5f4f96e3a05417103ac;p=linux-2.6 diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index d8a02f1e08..0498b181dd 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -443,12 +443,12 @@ static int load_flat_file(struct linux_binprm * bprm, if (strncmp(hdr->magic, "bFLT", 4)) { /* + * Previously, here was a printk to tell people + * "BINFMT_FLAT: bad header magic". + * But for the kernel which also use ELF FD-PIC format, this + * error message is confusing. * because a lot of people do not manage to produce good - * flat binaries, we leave this printk to help them realise - * the problem. We only print the error if its not a script file */ - if (strncmp(hdr->magic, "#!", 2)) - printk("BINFMT_FLAT: bad header magic\n"); ret = -ENOEXEC; goto err; }