~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to lib/initgroups.c

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-05-04 11:15:49 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (20.3.1 squeeze) (21.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100504111549-1apjh2g5sndki4te
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    groups[index++] = basegid;
39
39
 
40
40
    while (index < NGROUPS_MAX && ((g = getgrent()) != NULL)) {
41
 
       if (g->gr_gid != basegid) {
42
 
        char **names;
43
 
 
44
 
        for (names = g->gr_mem; *names != NULL; ++names) {
45
 
 
46
 
       if (!strcmp(*names, name))
47
 
            groups[index++] = g->gr_gid;
48
 
 
49
 
           }
50
 
       }
 
41
        if (g->gr_gid != basegid) {
 
42
            char **names;
 
43
 
 
44
            for (names = g->gr_mem; *names != NULL; ++names) {
 
45
 
 
46
                if (!strcmp(*names, name))
 
47
                    groups[index++] = g->gr_gid;
 
48
 
 
49
            }
 
50
        }
51
51
    }
52
52
 
53
53
    endgrent();