Changeset 1600


Ignore:
Timestamp:
Aug 21, 2010, 3:36:13 AM (12 years ago)
Author:
geofft
Message:
admof: More mutable input fun.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/accountadm/admof.c

    r1599 r1600  
    248248#ifdef SYSADMINS
    249249    if (~rights & PRSFS_ADMINISTER) {
    250         snprintf(cell, MAXCELLCHARS, "%s", SYSADMIN_CELL);
    251         if (pr_Initialize(secLevel, (char *)AFSDIR_CLIENT_ETC_DIRPATH, cell) == 0) {
    252             if (ismember(user, SYSADMINS)) {
     250        char sysadmins[] = SYSADMINS, sysadmin_cell[] = SYSADMIN_CELL;
     251        if (pr_Initialize(secLevel, (char *)AFSDIR_CLIENT_ETC_DIRPATH, sysadmin_cell) == 0) {
     252            if (ismember(user, sysadmins)) {
    253253                openlog("admof", 0, LOG_AUTHPRIV);
    254254                syslog(LOG_NOTICE, "giving %s admin rights on %s", user, locker);
Note: See TracChangeset for help on using the changeset viewer.