[BACK]Return to groupaccess.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/groupaccess.c between version 1.3.4.2 and 1.4

version 1.3.4.2, 2001/03/21 18:52:46 version 1.4, 2001/06/26 17:27:23
Line 34 
Line 34 
 static int ngroups;  static int ngroups;
 static char *groups_byname[NGROUPS_MAX + 1];    /* +1 for base/primary group */  static char *groups_byname[NGROUPS_MAX + 1];    /* +1 for base/primary group */
   
   /*
    * Initialize group access list for user with primary (base) and
    * supplementary groups.  Return the number of groups in the list.
    */
 int  int
 ga_init(const char *user, gid_t base)  ga_init(const char *user, gid_t base)
 {  {
Line 53 
Line 57 
         return (ngroups = j);          return (ngroups = j);
 }  }
   
   /*
    * Return 1 if one of user's groups is contained in groups.
    * Return 0 otherwise.  Use match_pattern() for string comparison.
    */
 int  int
 ga_match(char * const *groups, int n)  ga_match(char * const *groups, int n)
 {  {
Line 65 
Line 73 
         return 0;          return 0;
 }  }
   
   /*
    * Free memory allocated for group access list.
    */
 void  void
 ga_free(void)  ga_free(void)
 {  {

Legend:
Removed from v.1.3.4.2  
changed lines
  Added in v.1.4