Changeset bd09f9f in rtems-libbsd


Ignore:
Timestamp:
May 3, 2018, 6:18:24 AM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b5f8d4831d66364b7391e3660560cb9bbecada2e, 31b5c87357cee83d6a3419c5d801a9bf16912714
Children:
8bd38d6
Parents:
9c570da
git-author:
Sebastian Huber <sebastian.huber@…> (05/03/18 06:18:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/08/18 04:50:17)
Message:

rc_conf: Do not create directories used by dhcpcd

The dhcpcd will create the directories on its own.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-rc-conf-net.c

    r9c570da rbd09f9f  
    5252#include <stdio.h>
    5353#include <stdlib.h>
    54 #include <sys/stat.h>
    5554#include <string.h>
    5655#include <unistd.h>
     
    641640  const char**  argv;
    642641  const char*   dhcpcd_argv[] = { "dhcpcd", NULL };
    643   struct stat   sb;
    644642  int           r;
    645 
    646   r = stat("/var", &sb);
    647   if (r < 0) {
    648     mkdir("/var", S_IRWXU | S_IRWXG | S_IRWXO);
    649   }
    650 
    651   r = stat("/var/db", &sb);
    652   if (r < 0) {
    653     mkdir("/var/db", S_IRWXU | S_IRWXG | S_IRWXO);
    654   }
    655643
    656644  if (dd->argc_argv->argc > 0) {
Note: See TracChangeset for help on using the changeset viewer.