]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-pts-logging-20050619
authorJeffrey Altman <jaltman@mit.edu>
Mon, 11 Jul 2005 20:06:48 +0000 (20:06 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 11 Jul 2005 20:06:48 +0000 (20:06 +0000)
enhance pts logging

(cherry picked from commit 0fed4743ae7763bf0b7c2c273cd54730e01f2249)

src/ptserver/ptprocs.c

index ca8916ec9e60c36e177e79533d0a7a4e743799a2..7c22da9291958597b009bd02248b4d7633762eac 100644 (file)
@@ -1201,6 +1201,10 @@ getCPS(call, aid, alist, over, cid)
     if (code)
        ABORT_WITH(tt, code);
 
+    code = WhoIsThis(call, tt, cid);
+    if (code)
+       ABORT_WITH(tt, PRPERM);
+
     temp = FindByID(tt, aid);
     if (!temp)
        ABORT_WITH(tt, PRNOENT);
@@ -1523,7 +1527,7 @@ SPR_ListEntry(call, aid, aentry)
     afs_int32 code;
     afs_int32 cid = ANONYMOUSID;
 
-    code = listEntry(call, aid, aentry, cid);
+    code = listEntry(call, aid, aentry, &cid);
     osi_auditU(call, PTS_LstEntEvent, code, AUD_LONG, aid, AUD_END);
     ViceLog(125, ("PTS_ListEntry: code %d cid %d aid %d", code, cid, aid));
     return code;