Changeset 5eb27ce in rtems


Ignore:
Timestamp:
Feb 20, 2015, 4:00:47 AM (5 years ago)
Author:
Nick Withers <nick.withers@…>
Branches:
4.11, master
Children:
a45dfa14
Parents:
c53705c
git-author:
Nick Withers <nick.withers@…> (02/20/15 04:00:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/20/15 07:56:25)
Message:

Don't fail to create passwd and group files if /etc already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/pwdgrp.c

    rc53705c r5eb27ce  
    6262static void pwdgrp_init(void)
    6363{
    64   int rc;
    65 
    66   rc = mkdir("/etc", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
    67   if ( rc != 0 )
    68     return;
     64  /*
     65   * Do the best to create this directory.
     66   */
     67  mkdir("/etc", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
    6968
    7069  /*
Note: See TracChangeset for help on using the changeset viewer.