[BusyBox] Re: Some more busybox issues...

Erik Andersen andersen at lineo.com
Fri Mar 16 01:19:15 UTC 2001


On Fri Mar 16, 2001 at 01:47:19AM +0100, Andreas Neuhaus wrote:
> 
> 
> > > hmm... very bad... i need a way to get this to work. a non-working
> reboot is
> > > not a good idea :-(
> > I just made a boot floppy.  I can't reproduce this on 2.4 or 2.2 kernels,
> > so I'm assuming this is specific to your setup, and not holding the
> release
> > for this one.
> 
> hmm... i tried on 3 other systems which run SuSE linux 7.1 with a 2.4.2
> kernel. my test:
> 
> 123.c:
> int main (int argc, char *argv[])
> {
>     argv[0]="asd";                // does not work, strdup neither
>     strcpy(argv[0], "asd");     // works but does not look like a good idea
>     while (1)
>         sleep(1);
> }
> gcc -Wall -Os 123.c -o 123
> 
> on all systems this process showed up as "123", not as "asd". i think i'm
> gonna have a look into sysvinit source, because it's running on all 3
> systems and shows up as "init [3]"...

Look at the code at the end of busybox.c, which also does 
this type of command line munging.  But what is odd is
that this worked for me here using 2.4.3-pre3...

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list