standalone/nofork oddity

Denys Vlasenko vda.linux at googlemail.com
Tue Oct 21 12:50:18 UTC 2008


On Monday 20 October 2008 04:36:58 pm Andreas Bühmann wrote:
> Denys Vlasenko wrote:
> > BTW, I reproduced what you see. It's a simple matter of getopt()
> > state not being reset.
> >
> > Please try attached patch, does it help you?
> >   
> 
> Not really (apart from making my test case work); it seems to break the
> command-line version of getopt completely:
> 
> # getopt -o ab -- -a -b -c
>  --
> # getopt -l foo,bar -- --foo --bar --baz
>  --

I was too optimistic with removing stuff,
getopt.c heeds getopt() reset for entirely different reason.
Please try with this patch on top:
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z.diff
Type: text/x-diff
Size: 489 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081021/73346b53/attachment.bin 


More information about the busybox mailing list