Project

General

Profile

Revision 5014

  • gwlib/utils.c: fixed initgroups call. This fixes #676.
    Thanks to Alexandr Ryabukhin for report.

View differences:

trunk/ChangeLog
1 1
2012-12-19 Alexander Malysh <amalysh at kannel.org>
2
    * gwlib/utils.c: fixed initgroups call. This fixes #676.
3
      Thanks to  Alexandr Ryabukhin for report.
4

  
5
2012-12-19 Alexander Malysh <amalysh at kannel.org>
2 6
    * gwlib/utils.c: applied patch that display compiled PostgreSQL version.
3 7
      Thanks to Alexey Savchuk <international at devpreview.ru> for this patch.
4 8

  
trunk/gwlib/utils.c
441 441
    }
442 442

  
443 443
#ifdef HAVE_INITGROUPS
444
    if (initgroups(user, -1) == -1) {
444
    if (initgroups(user, pass->pw_gid) == -1) {
445 445
        error(errno, "Could not set supplementary group ID's.");
446 446
    }
447 447
#endif

Also available in: Unified diff