main: fixup parameter parsing for user program
authorBrian Norris <banorris@uci.edu>
Fri, 2 Nov 2012 22:50:48 +0000 (15:50 -0700)
committerBrian Norris <banorris@uci.edu>
Fri, 2 Nov 2012 23:14:56 +0000 (16:14 -0700)
The user program expects 'optind' to be reset and for 'argv' and 'argc'
to include the program name as the first argument variable.

Note: our mmap()/mprotect()-based snapshotting does not snapshot this
'optind' global, so user-progs that use optarg() functionality might
fail.


No differences found