diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-15 13:36:30 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-15 13:36:30 -0500 |
commit | 52833e897fd8c6f62b3e5e27291fa9bc803f7460 (patch) | |
tree | cfe90047ee6c7402674a29ec7258319142b96ff1 /fs/binfmt_flat.c | |
parent | 8d042218b075de3cdbe066198515b3521553746e (diff) | |
parent | 4ee29f6a52158cea526b16a44ae38643946103ec (diff) |
Merge branch 'linus_origin' into hotfixes
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r-- | fs/binfmt_flat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index d8a02f1e08cc..0498b181dd52 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c | |||
@@ -443,12 +443,12 @@ static int load_flat_file(struct linux_binprm * bprm, | |||
443 | 443 | ||
444 | if (strncmp(hdr->magic, "bFLT", 4)) { | 444 | if (strncmp(hdr->magic, "bFLT", 4)) { |
445 | /* | 445 | /* |
446 | * Previously, here was a printk to tell people | ||
447 | * "BINFMT_FLAT: bad header magic". | ||
448 | * But for the kernel which also use ELF FD-PIC format, this | ||
449 | * error message is confusing. | ||
446 | * because a lot of people do not manage to produce good | 450 | * because a lot of people do not manage to produce good |
447 | * flat binaries, we leave this printk to help them realise | ||
448 | * the problem. We only print the error if its not a script file | ||
449 | */ | 451 | */ |
450 | if (strncmp(hdr->magic, "#!", 2)) | ||
451 | printk("BINFMT_FLAT: bad header magic\n"); | ||
452 | ret = -ENOEXEC; | 452 | ret = -ENOEXEC; |
453 | goto err; | 453 | goto err; |
454 | } | 454 | } |