exec_osf1_imgact() should return -1 for non OSF1/ECOFF binaries, it should

not return ENOEXEC.  This is because image activators should return -1 if they
don't claim an image. They should return ENOEXEC if they do claim it,
but cannot load it due to sime problem with the image.   This bug was
preventing static compilation of the osf/1 module.  I'm surprised it
did not cause more problems.
This commit is contained in:
Andrew Gallatin 2000-12-02 04:15:17 +00:00
parent c8a6b0011c
commit 6e4708aa12
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69510

View File

@ -102,7 +102,7 @@ exec_osf1_imgact(struct image_params *imgp)
/* check to make sure we have an alpha ecoff executable */
if (ECOFF_BADMAG(execp))
return ENOEXEC;
return -1;
/* verfify it an OSF/1 exectutable */
if (eap->magic != ECOFF_ZMAGIC) {