On 9/13/20 6:17 PM, Andreas K. Hüttel wrote:
> Hi,
>
> in aclocal.m4 (and thus also configure), the test for
> BASH_STRUCT_WEXITSTATUS_OFFSET contains
>
> /* crack s */
> for (i = 0; i < (sizeof(s) - 8); i++)
>
> Shouldnt this be
>
> /* crack s */
> for (i = 0; i < (sizeof(s) * 8); i++)
>
> (* instead of -), see attached trivial patch? The minus sign makes no sense
> at
> all since even on x86-64 sizeof(int)=4 ...
Yes, thanks. It's a typo, but has no effect on obtaining the right answer.
On some weird yet-to-be-encountered system, if the exit status were not
available at some offset in the status word, it would result in an infinite
loop.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/