]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
o Replace two while {} do loops with more appropriate do {} while loops. This
authorsobomax <sobomax@FreeBSD.org>
Fri, 25 Feb 2005 10:17:53 +0000 (10:17 +0000)
committersobomax <sobomax@FreeBSD.org>
Fri, 25 Feb 2005 10:17:53 +0000 (10:17 +0000)
commit71f43f57517d3e377d334aa02c145d44c25d58b8
treeee8d6ebe6471d7a1e93e1fed6816a1aca03bd200
parenta5adba4746c343efa631d62bf8bcdda38c76f2fe
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>
sys/kern/imgact_shell.c