aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index dda530a99..8df2e7f5d 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1017,10 +1017,10 @@ static int doit(char *str)
return (1);
}
-static int execute_all(interface_defn *ifd, execfn *exec, char *opt)
+static int execute_all(interface_defn *ifd, execfn *exec, const char *opt)
{
int i;
- char buf[100];
+// char buf[100];
for (i = 0; i < ifd->n_options; i++) {
if (strcmp(ifd->option[i].name, opt) == 0) {
@@ -1030,8 +1030,9 @@ static int execute_all(interface_defn *ifd, execfn *exec, char *opt)
}
}
- sprintf(buf, "run-parts /etc/network/if-%s.d", opt);
- (*exec) (buf);
+ runparts("/etc/network/if-"opt".d");
+// sprintf(buf, "run-parts /etc/network/if-%s.d", opt);
+// (*exec) (buf);
return (1);
}