Maxim Sobolev 6916a1da50 o Replace two while {} do loops with more appropriate do {} while loops. This
doesn't change functionality, but makes code more logical.

Obtained from:	DrafonFlyBSD

o Use VOP_GETATTR() to obtain actual size of file and parse no more than that.
  Previously, we parsed MAXSHELLCMDLEN characters regardless of the actual file
  size. This makes the following working:

$ printf '#!/bin/echo' > /tmp/test.sh
$ chmod 755 /tmp/test.sh
$ /tmp/test.sh

Previously, attempts to execve() that shell script has been failing with bogus
ENAMETOOLONG.

PR:		kern/64196
Submitted by:	Magnus B.ckstr.m <b@etek.chalmers.se>
2005-02-25 10:17:53 +00:00
..
2005-02-17 11:14:45 +00:00
2005-02-25 00:16:53 +00:00
2005-02-25 03:41:11 +00:00
2005-02-22 19:02:24 +00:00
2005-02-10 20:39:39 +00:00
2005-02-23 22:53:04 +00:00
2005-02-23 22:44:38 +00:00
2005-02-24 13:15:05 +00:00