Changeset bd09f9f in rtems-libbsd


Ignore:
Timestamp:
May 3, 2018, 6:18:24 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 9dd0bc27e3338bad08eaaf52d03265d2e7b9b4f7, 7027254d293cf3a8c888bd9f25052e96f458bc67, d164b840c3973e0793da1b3e4142b1711514b9ba
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.