[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] run_shell.c
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2002-08-28 9:24:03
[Download RAW message or body]


Michael,
 
> /bin/login from latest CVS version
> from 26/8/2002 busybox falling with
> SEGFAULT.
> 
> Computer is PPC 8xx.
> 
> I inserted a few printfs and found out that it
> fails when it tries to run shell trying to
> add arguments to shell's command line.
> 
> The exact line is 64 in file libbb/run_shell.c:
> bb_asprintf ( &args0, "-%s", args [0] );
> 
> When I commented out the entire 'if' everything
> worked..

Thanks for productive help.
I long thinking and found original idea:
uclibc have vasprintf now 
(but have your found problem if disable memory stream for PPC arch).
New version bb_asprintf is trivial.
Patch in attach.


--w
vodz
["last_patch53.gz" (application/x-gzip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic