~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/afs/OBSD/osi_groups.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2006-10-21 20:57:09 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061021205709-y5keam1v20qxjwwo
Tags: 1.4.2-2
Upstream fix to prevent butc segfaulting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "afs/param.h"
20
20
 
21
21
RCSID
22
 
    ("$Header: /cvs/openafs/src/afs/OBSD/osi_groups.c,v 1.5 2003/07/15 23:14:25 shadow Exp $");
 
22
    ("$Header: /cvs/openafs/src/afs/OBSD/osi_groups.c,v 1.5.2.1 2006/06/23 14:21:12 rees Exp $");
23
23
 
24
24
#include "afs/sysincludes.h"
25
25
#include "afs/afsincludes.h"
47
47
    struct vrequest treq;
48
48
 
49
49
    AFS_STATCNT(afs_xsetgroups);
50
 
    AFS_GLOCK();
 
50
    AFS_GLOCKP(p);
51
51
 
52
52
    code = afs_InitReq(&treq, p->p_rcred);
53
 
    AFS_GUNLOCK();
 
53
    AFS_GUNLOCKP(p);
54
54
    if (code)
55
55
        return code;
56
56
 
61
61
     */
62
62
    if (PagInCred(p->p_rcred) == NOPAG) {
63
63
        if (((treq.uid >> 24) & 0xff) == 'A') {
64
 
            AFS_GLOCK();
 
64
            AFS_GLOCKP(p);
65
65
            /* we've already done a setpag, so now we redo it */
66
66
            AddPag(p, treq.uid, &p->p_rcred);
67
 
            AFS_GUNLOCK();
 
67
            AFS_GUNLOCKP(p);
68
68
        }
69
69
    }
70
70
    return code;