On Tue, Oct 23, 2007 at 11:23:31AM +0300, Timo Savola
wrote:
> On Mon, 2007-10-22 at 20:25 -0700, Diane Holt wrote:
>
> > Actually, can you just tell me what --sbox-call is
for? Looking at the
> > patch for it, it seems to just be skipping it
anyway (unless I'm
> > missing something). The comment for the commit
that added it said
> > something about a "calling convention",
but I'm not sure what that
> > really means.
>
> sbrsh seems to skip the next non-option argument (=
target program
> name?) when --sbox-call is specified. I don't know
why.
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.
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).
That stuff is noise emitted by fixing #277. See also
20060918133615-2603f-4d93d27bb57984387af2333030cc6f62eacfcda
5.gz
in 1.0/scratcbox.
-Toni
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users
|