On Saturday 26 January 2008 07:19, Roy Marples wrote:
> 
> On Fri, 2008-01-25 at 22:55 +0000, Denis Vlasenko wrote:
> > Can you post your .config?
> 
> Attached.

Aha. CONFIG_FEATURE_PREFER_APPLETS=y!

Can you test something for me? Go to
libbb/vfork_daemon_rexec.c and add getopt reset code
(indicated by '+'):

int run_nofork_applet_prime(struct nofork_save_area *old, int applet_no, char 
**argv)
{
        int rc, argc;

        applet_name = APPLET_NAME(applet_no);
        xfunc_error_retval = EXIT_FAILURE;

+#ifdef __GLIBC__
+        optind = 0;
+#else /* BSD style */
+        optind = 1;
+        /*optreset = 1; */
+#endif
        /*option_mask32 = 0; - not needed */
...

Does it help?
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to