aboutsummaryrefslogtreecommitdiff
path: root/libbb/run_parts.c
AgeCommit message (Collapse)Author
2003-07-29Bruno Randolf writes:Eric Andersen
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-05-27Put this back the way it was. I misunderstood what vodz was doing.Eric Andersen
2003-05-26This was doing some silly stuff that is not necessary when usingEric Andersen
vfork(), so I have simplified it.
2003-03-19Major coreutils update.Manuel Novoa III
2003-01-20New test mode that allows run_parts to fail silently if the directoryGlenn L McGrath
is not found. Patch from Bastian Blank
2003-01-20Make test mode output same as official versionGlenn L McGrath
2002-11-21Fix a vfork bug, by Nick Fedchik and Vladimir N. OleynikGlenn L McGrath
2002-11-15Use vfork, by vodzGlenn L McGrath
2002-11-11Move awk from textutils to editors. Cleanup run-parts, saves 200 bytes, ↵Glenn L McGrath
moves the guts of run_parts to libbb to be used by ifupdown.