Redo argv processing to better conform to standards. A NULL argv is no
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 29 Jan 2005 20:54:20 +0000 (20:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 29 Jan 2005 20:54:20 +0000 (20:54 +0000)
commit66be65667b8038877f005ef4a11e4ee900928137
tree82e60b774de5b41b997acecbdf0c6c943bd70385
parent21ab32bd5136ed2dc3034cb7b406e1310dbd18f7
Redo argv processing to better conform to standards.  A NULL argv is no
longer allowed.  If argv[0] is NULL, we still pass a filename for argv[0]
to the underlying program but we no longer attempt to process any further
arguments.  Also rewrite the loop and get rid of the goto to make the code
more readable.

Suggested-by: Maxim Sobolev <sobomax@portaone.com>
sys/kern/kern_exec.c