cvs commit: src/sys/kern imgact_shell.c

Maxim Sobolev sobomax at FreeBSD.org
Fri Feb 25 08:42:04 GMT 2005


sobomax     2005-02-25 08:42:04 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             imgact_shell.c 
  Log:
  Try harder to not exceed MAXSHELLCMDLEN when parsing first line of shell
  script. Otherwise it's possible to panic kernel by constructing a shell
  script with first line not ending in '\n'.
  
  Also, treat '\0' as line terminating character, which may me useful in
  some situations.
  
  Submitted by:   gad
  
  Revision  Changes    Path
  1.31      +9 -7      src/sys/kern/imgact_shell.c


More information about the cvs-src mailing list