<html>#2908: Cactus: Fixed arg list too long error.
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Max Morris</td></tr>
<tr><td style='text-align:right'> Status:</td><td>submitted</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>
<p><a data-is-external-link="true" href="https://bitbucket.org/cactuscode/cactus/pull-requests/175" rel="nofollow">https://bitbucket.org/cactuscode/cactus/pull-requests/175</a></p>
<p>There is a check in <code>lib/make/make.thornlib</code> to ensure that <code>sh</code> is not passed an argument string which is too long. However, this check is not robust enough because it counts words instead of characters/bytes and compares against arbitrary magic numbers rather than checking the max argument string length of the system. I am working on a thorn which fails to build as a direct result of the faulty check.</p>
<p>This PR replaces the existing check with a more robust one based on <code>$ getconf ARG_MAX</code>, with reasonable fallback behavior if the system shell somehow doesn’t support this command.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error'>https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error</a></p>
</html>