- Timestamp:
- Aug 21, 2010, 3:21:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/oursrc/accountadm/admof.c
r1598 r1599 44 44 45 45 static bool 46 ismember(c onst char *user, constchar *group)46 ismember(char *user, char *group) 47 47 { 48 48 int flag; 49 if (pr_IsAMemberOf( (char *)user, (char *)group, &flag) == 0)49 if (pr_IsAMemberOf(user, group, &flag) == 0) 50 50 return flag; 51 51 else … … 55 55 /* Parse an ACL of n entries, returning the rights for user. */ 56 56 static int 57 parse_rights(int n, const char **p, c onst char *user)57 parse_rights(int n, const char **p, char *user) 58 58 { 59 59 int rights = 0, *trights = malloc(n * sizeof(int)), i; … … 248 248 #ifdef SYSADMINS 249 249 if (~rights & PRSFS_ADMINISTER) { 250 s trncpy(cell, SYSADMIN_CELL, MAXCELLCHARS - 1);250 snprintf(cell, MAXCELLCHARS, "%s", SYSADMIN_CELL); 251 251 if (pr_Initialize(secLevel, (char *)AFSDIR_CLIENT_ETC_DIRPATH, cell) == 0) { 252 252 if (ismember(user, SYSADMINS)) {
Note: See TracChangeset
for help on using the changeset viewer.