Eric Andersen 2a186890ee Bruno Randolf writes:
this patch fixes run_parts when it's called by ifupdown. 1) argv has to be a
NULL terminated char* array, not just a string. 2) run_parts now explicitly
sets the environment. this environment is populated from the
/etc/network/interfaces config file and is needed by the scripts in
/etc/network/if-pre-up.d/. when run-parts is called from the command line the
environment is taken from the current process.


Vladimir Oleynik then wrote:

You can simplify this if use:

+       bb_xasprintf(&buf[0], "/etc/network/if-%s.d", opt);
+       buf[1] = NULL;
+
+       run_parts(&buf, 2, environ);
+       free(buf[0]);

--w
vodz
2003-07-29 07:05:40 +00:00
..
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-05-26 14:07:50 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-04-21 10:26:39 +00:00
2003-03-19 09:13:01 +00:00
2003-06-20 09:01:58 +00:00
2003-07-28 06:37:04 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-07-28 07:40:39 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-04-16 23:02:35 +00:00
2003-07-03 10:07:04 +00:00
2002-12-14 01:58:59 +00:00
2003-05-26 14:07:50 +00:00
2003-07-29 07:05:40 +00:00
2003-07-03 10:07:04 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-07-22 08:56:55 +00:00
2003-07-28 07:40:39 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-05-26 14:07:50 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00
2003-03-19 09:13:01 +00:00

Please see the LICENSE file for copyright information (GPLv2)
    
libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen 
	<andersen@codepoet.org>