[BACK]Return to exec_script.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/exec_script.c between version 1.68 and 1.69

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;

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

CVSweb <webmaster@jp.NetBSD.org>