Add legacy shwitch for -sbox-call
authorRiku Voipio <riku.voipio@nokia.com>
Wed, 14 Jan 2009 16:05:27 +0000 (18:05 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Wed, 14 Jan 2009 16:07:24 +0000 (18:07 +0200)
commit7c7f537f10dd1fab824d37ab2834c0c3f188861e
treefd01dc07893a7b0eea52dfea7774f57024e25b52
parent2438c81993f48c764bd7ea8adc4a171affe263b3
Add legacy shwitch for -sbox-call

From: Toni Timonen

The --sbox-call means that the name of the binary and every argument,
including argv[0], is given in command line. In some cases this can't
really be resolved from the actual binary called, so it is being
preserved. This is used from -misc-runner.

Toni:

"If I remember correctly, the first argument after --sbox-call (that is
the actual binary name) is used to locate the actual binary that is
being called, but rest of the arguments are given to the elf (eg. we
skipped the program name, but kept the argv[0]; in scratchbox these
two can be different in quite many cases)."
linux-user/main.c