version 1.68, 2014/02/17 19:29:46 |
version 1.69, 2014/02/21 08:11:59 |
Line 155 exec_script_makecmds(struct lwp *l, stru |
|
Line 155 exec_script_makecmds(struct lwp *l, stru |
|
if (cp >= hdrstr + hdrlinelen) |
if (cp >= hdrstr + hdrlinelen) |
return ENOEXEC; |
return ENOEXEC; |
|
|
/* |
|
* If the script has an ELF header, don't exec it. |
|
*/ |
|
if (epp->ep_hdrvalid >= sizeof(ELFMAG)-1 && |
|
memcmp(hdrstr, ELFMAG, sizeof(ELFMAG)-1) == 0) |
|
return ENOEXEC; |
|
|
|
shellname = NULL; |
shellname = NULL; |
shellarg = NULL; |
shellarg = NULL; |
shellarglen = 0; |
shellarglen = 0; |