hush/include
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
..
.cvsignore Ignore generated files 2001-10-24 06:53:33 +00:00
applets.h Remove the update utility, that is only relevant to older 2.0.x kernels 2003-07-22 10:11:27 +00:00
busybox.h Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
dump.h Major coreutils update. 2003-03-19 09:13:01 +00:00
grp_.h Scrub pwd.h and grp.h handling so we don't have to play any 2002-07-03 23:19:26 +00:00
inet_common.h Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
libbb.h Bruno Randolf writes: 2003-07-29 07:05:40 +00:00
pwd_.h Scrub pwd.h and grp.h handling so we don't have to play any 2002-07-03 23:19:26 +00:00
shadow_.h Port over the last of the tinylogin applets 2002-06-23 04:24:25 +00:00
unarchive.h rpm applet by Laurence Anderson 2002-12-10 00:17:22 +00:00
usage.h Patch from vodz to update httpd usage 2003-07-28 09:59:05 +00:00