glibc and getgrouplist
Roland Illig
roland.illig at gmx.de
Fri Jul 22 07:30:11 UTC 2005
Koblinger Egmont wrote:
>>>> (strcmp(gnu_get_libc_version(), "2.3.3") > 0)
>
>
>>Why not? Note the ">" comparison. Since 2.3.3, this should be definitely
>>fixed.
>
>
> Please use strverscmp() or something similar. According to strcmp, 2.3.10 is
> smaller than 2.3.3.
Hmmm, you're right. As we are sure to have a glibc, there's also a
function strverscmp, which we can use. I had known this issue, but as
glibc-2.2 only got upto 2.2.6, I thought it would suffice.
Roland
More information about the mc-devel
mailing list