Changeset 1509 for trunk/server/common


Ignore:
Timestamp:
Mar 12, 2010, 4:13:12 AM (13 years ago)
Author:
andersk
Message:
Return real error codes from unauthorized PGetTokens, PSetTokens, PUnlog.

The previous return values of 0 caused aklog to segfault.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/patches/openafs-scripts.patch

    r1274 r1509  
    178178 
    179179+    if (areq->uid == globalpag && areq->realuid != AFSAGENT_UID) {
    180 +       return 0;
     180+       return EACCES;
    181181+    }
    182182+
     
    190190+    if (areq->uid == globalpag && areq->realuid != AFSAGENT_UID &&
    191191+       areq->realuid != 0 && areq->realuid != SIGNUP_UID)
    192 +       return 0;
     192+       return EDOM;
    193193+
    194194     AFS_STATCNT(PGetTokens);
     
    200200 
    201201+    if (areq->uid == globalpag && areq->realuid != AFSAGENT_UID) {
    202 +       return 0;
     202+       return EACCES;
    203203+    }
    204204+
Note: See TracChangeset for help on using the changeset viewer.