[PATCH v2 2/6] rc_conf: Do not create directories used by dhcpcd
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu May 3 06:49:47 UTC 2018
The dhcpcd will create the directories on its own.
---
rtemsbsd/rtems/rtems-bsd-rc-conf-net.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
index d5d4f3958..0a5b3aaec 100644
--- a/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
+++ b/rtemsbsd/rtems/rtems-bsd-rc-conf-net.c
@@ -51,7 +51,6 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
@@ -640,19 +639,8 @@ dhcpcd_worker(rtems_task_argument arg)
int argc;
const char** argv;
const char* dhcpcd_argv[] = { "dhcpcd", NULL };
- struct stat sb;
int r;
- r = stat("/var", &sb);
- if (r < 0) {
- mkdir("/var", S_IRWXU | S_IRWXG | S_IRWXO);
- }
-
- r = stat("/var/db", &sb);
- if (r < 0) {
- mkdir("/var/db", S_IRWXU | S_IRWXG | S_IRWXO);
- }
-
if (dd->argc_argv->argc > 0) {
argc = dd->argc_argv->argc;
argv = dd->argc_argv->argv;
--
2.12.3
More information about the devel
mailing list