Mail Archives: djgpp-workers/1998/08/25/09:52:31
> Btw, why is that stubinfo 16 bytes long? argv[0] cannot be more than
> 8+3+1+1 = 13 bytes, so what are the extra 3 bytes for? DJ?
It might come from the alternate argv[0] stored in the stub, which is
up to 16 bytes. The stub has a field to allow you to specify an
alternate argv[0], just in case the program needs it to be a specific
value longer than 8 characters or case sensitive. For example,
"sendmail" acts differently if it is called as "newaliases", but
"newaliases" is longer than 8 characters. Yes, I know symlinks would
be used in that case, but there may be cases where they aren't, or
when *all* variants are longer 8 characters.
- Raw text -