Re: glibc and getgrouplist



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]