cvs commit: src/sys/kern imgact_shell.c

Garance A Drosehn gad at FreeBSD.org
Sun Jun 19 02:21:04 GMT 2005


gad         2005-06-19 02:21:03 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             imgact_shell.c 
  Log:
  Fix a panic which could occur parsing #!-lines in a shell-script.  If the
  #!-line had multiple whitespace characters after the interpreter name, and
  it did not have any options, then the code would do nasty things trying to
  process a (non-existent) option-string which "ended before it began"...
  
  Submitted by:   Morten Johansen
  Approved by:    re (dwhite)
  
  Revision  Changes    Path
  1.35      +3 -3      src/sys/kern/imgact_shell.c


More information about the cvs-src mailing list