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

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Feb 20 07:59:24 UTC 2015


Hello Nick,

thanks for the patch. I checked in a slightly different version which 
ignores the return status completely.

On 20/02/15 05:13, Nick Withers wrote:
> Hi all,
>
> Commit 3211e8e9c0565fae8b13ba0115e3a23ad3ae8ade added error checking to
> a mkdir("/etc", ...) call in pwdgrp_init().
>
> That call might fail if the directory already exists. In my case,
> because I'm tarfs-ing stuff into /etc before invoking the NFS client,
> which calls pwdgrp_init().
>
> The attached patch allows the mkdir() call to fail with EEXIST.
>
> Cheers!
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list