<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 18, 2024 at 9:50 AM Peter Dufault <<a href="mailto:dufault@hda.com">dufault@hda.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Apr 18, 2024, at 10:34 AM, Kinsey Moore <<a href="mailto:kinsey.moore@oarcorp.com" target="_blank">kinsey.moore@oarcorp.com</a>> wrote:<br>
> <br>
> A patch for EEXIST here should be fine. It would be nice if the caller were more resilient.<br>
> <br>
<br>
I also changed "default-network-init.h" to assert rtems_bsd_initialize() worked.<br>
<br>
sc = rtems_bsd_initialize();<br>
assert(sc == RTEMS_SUCCESSFUL);<br>
<br>
At least you get a panic message. I'll submit a patch.<br></blockquote><div><br></div><div>Why does /etc already exist? Is it really an error if it already exists?</div><div><br></div><div>If the startup code untar'ed some initial file system contents before calling this, then /etc would almost certainly exist.</div><div><br></div><div>Unless I am missing something EEXIST should be acceptable. Other errors are most likely really fatal.</div><div><br></div><div><a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html">https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html</a></div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Peter<br>
-----------------<br>
Peter Dufault<br>
HD Associates, Inc. Software and System Engineering<br>
<br>
<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>