~ubuntu-branches/ubuntu/trusty/nss-pam-ldapd/trusty-updates

« back to all changes in this revision

Viewing changes to nss/bsdnss.c

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2012-05-20 23:00:00 UTC
  • mfrom: (16.1.4)
  • Revision ID: package-import@ubuntu.com-20120520230000-a8d8wbxsii49jt1j
Tags: 0.8.9-1
* new upstream release:
  - allow the pam_authz_search option to be specified multiple times
  - implement extra range checking of all numeric values
  - make documentation up-to-date
  - compatibility improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   Copyright (C) 2003 Jacques Vidrine
7
7
   Copyright (C) 2006 Artem Kazakov
8
8
   Copyright (C) 2009 Alexander V. Chernikov
9
 
   Copyright (C) 2011 Arthur de Jong
 
9
   Copyright (C) 2011, 2012 Arthur de Jong
10
10
   Copyright (C) 2011 Tom Judge
11
11
 
12
12
   This library is free software; you can redistribute it and/or
147
147
  return (status);
148
148
}
149
149
 
150
 
int __gr_addgid(gid_t gid,gid_t *groups,int maxgrp,int *groupc)
 
150
static int __gr_addgid(gid_t gid,gid_t *groups,int maxgrp,int *groupc)
151
151
{
152
152
  int ret,dupc;
153
153
  /* skip duplicates */
171
171
  nss_status_t s;
172
172
  gid_t group;
173
173
  gid_t *tmpgroups;
174
 
  size_t bufsize;
175
174
  const char *user;
176
175
  gid_t *groups;
177
 
  gid_t agroup;
178
176
  int maxgrp,*grpcnt;
179
 
  int i,rv,ret_errno;
 
177
  int i;
180
178
  long int lstart,lsize;
181
179
  user=va_arg(ap,const char *);
182
180
  group=va_arg(ap,gid_t);