busybox/networking
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
..
libiproute Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
udhcp Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
arping.c Major coreutils update. 2003-03-19 09:13:01 +00:00
Config.in Update docs a bit 2003-07-28 08:31:56 +00:00
ftpgetput.c use an explicit cast on some types that change size when 2003-06-20 09:22:12 +00:00
hostname.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
httpd.c last_patch95 from vodz: 2003-07-28 07:40:39 +00:00
ifconfig.c Fix a silly bug I introduced yesterday 2003-06-21 09:05:49 +00:00
ifupdown.c Bruno Randolf writes: 2003-07-29 07:05:40 +00:00
inetd.c Fixup bugs in last patch 2003-07-28 09:31:28 +00:00
ip.c Major coreutils update. 2003-03-19 09:13:01 +00:00
ipaddr.c Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank 2002-12-01 23:04:06 +00:00
ipcalc.c Patch from Lars Kellogg-Stedman: 2003-07-05 07:59:30 +00:00
iplink.c Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank 2002-12-01 23:04:06 +00:00
iproute.c Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank 2002-12-01 23:04:06 +00:00
iptunnel.c Enable ip commands to be compiled seperate from ip, modifed patch from Bastian Blank 2002-12-01 23:04:06 +00:00
Makefile Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
Makefile.in last_patch95 from vodz: 2003-07-28 07:40:39 +00:00
nameif.c Patch from Lars Kellogg-Stedman: 2003-07-05 08:00:17 +00:00
nc.c Major coreutils update. 2003-03-19 09:13:01 +00:00
netstat.c Major coreutils update. 2003-03-19 09:13:01 +00:00
nslookup.c Major coreutils update. 2003-03-19 09:13:01 +00:00
ping6.c Patch from Russell Coker: 2003-05-22 07:10:22 +00:00
ping.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
route.c Major coreutils update. 2003-03-19 09:13:01 +00:00
telnet.c Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
telnetd.c Patch from Steven Scholz to fix telnetd compile problem 2003-04-25 12:32:37 +00:00
tftp.c Patch from Christian Meyer: 2003-07-26 08:16:10 +00:00
traceroute.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00
vconfig.c Major coreutils update. 2003-03-19 09:13:01 +00:00
wget.c Remove remaining libc5 support code 2003-07-22 08:56:55 +00:00