Even short scripts are B_NOT_AN_EXECUTABLE, and not B_BAD_VALUE.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-16 01:01:17 +00:00
parent 828a3baaa4
commit 9c243392a4

View File

@ -1414,7 +1414,7 @@ elf_verify_header(void *header, int32 length)
int32 programSize, sectionSize;
if (length < (int32)sizeof(struct Elf32_Ehdr))
return B_BAD_VALUE;
return B_NOT_AN_EXECUTABLE;
return parse_elf_header((struct Elf32_Ehdr *)header, &programSize, &sectionSize);
}