[PATCH] Don't fail to create passwd and group files if /etc already exists
Nick Withers
nick.withers at anu.edu.au
Fri Feb 20 04:13:31 UTC 2015
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!
--
Nick Withers
Embedded Systems Programmer
Department of Nuclear Physics, Research School of Physics and Engineering
The Australian National University (CRICOS: 00120C)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etc.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150220/a49c012e/attachment.bin>
More information about the devel
mailing list