forked from Imagelibrary/rtems
Don't fail to create passwd and group files if /etc already exists
This commit is contained in:
committed by
Sebastian Huber
parent
c53705c384
commit
5eb27ce409
@@ -61,11 +61,10 @@ static void init_file(const char *name, const char *content)
|
|||||||
*/
|
*/
|
||||||
static void pwdgrp_init(void)
|
static void pwdgrp_init(void)
|
||||||
{
|
{
|
||||||
int rc;
|
/*
|
||||||
|
* Do the best to create this directory.
|
||||||
rc = mkdir("/etc", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
|
*/
|
||||||
if ( rc != 0 )
|
mkdir("/etc", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
|
||||||
return;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize /etc/passwd
|
* Initialize /etc/passwd
|
||||||
|
|||||||
Reference in New Issue
Block a user