#6 setgroups03 shoud use sysconf() for max no. of groups

System Calls
closed-fixed
Testcases (27)
5
2005-05-26
2005-05-18
Roman Kagan
No

NGROUPS_MAX defined in limits.h is not the max number
of groups in the system, it the max number guaranteed.
Thus, if the system actually allows more, the test
case doesn't produce the expected failure.

The right number is obtained through the call to
sysconf(_SC_NGROUPS_MAX). The attached patch fixes that.

Discussion

  • Roman Kagan

    Roman Kagan - 2005-05-18

    Use sysconf() to obtain current NGROUPS_MAX

     
  • Robert Williamson

    • assigned_to: nobody --> robbiew
     
  • Robert Williamson

    Logged In: YES
    user_id=236704

    Patch applied to CVS.

     
  • Robert Williamson

    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks