Changeset bd09f9f in rtems-libbsd


Ignore:
Timestamp:
May 3, 2018, 6:18:24 AM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5cb01f277962d3127d364bf871f799b34e6b6be6, cc60cbeef68291b54f73c2d26fe3da4b837a8e06
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.