source: branches/fc11-dev/server/common/patches/openafs-delta-linux26-defer-cred-changing-20090511.patch @ 1251

Last change on this file since 1251 was 1189, checked in by mitchb, 16 years ago
Apply OpenAFS delta linux26-defer-cred-changing-20090511 The OpenAFS newsletter claims we need this on Fedora 11, and it will be present in the upcoming 1.4.11 release.
File size: 588 bytes
  • openafs-1.4.10/src/afs/LINUX/osi_cred.c

    old new  
    104104#if defined(STRUCT_TASK_HAS_CRED)
    105105    struct cred *new_creds;
    106106
     107    /* If our current task doesn't have identical real and effective
     108     * credentials, commit_cred won't let us change them, so we just
     109     * bail here.
     110     */
     111    if (current->cred != current->real_cred)
     112        return;
    107113    new_creds = prepare_creds();
    108114    new_creds->fsuid = cr->cr_uid;
    109115    new_creds->uid = cr->cr_ruid;
Note: See TracBrowser for help on using the repository browser.