mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
2a186890ee
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 |
||
---|---|---|
.. | ||
.cvsignore | ||
applets.h | ||
busybox.h | ||
dump.h | ||
grp_.h | ||
inet_common.h | ||
libbb.h | ||
pwd_.h | ||
shadow_.h | ||
unarchive.h | ||
usage.h |