• Bug#219429: ugly patch

    From Turbo Fredriksson@1:229/2 to All on Tue Aug 17 17:50:08 2004
    From: [email protected]

    I just myself a SPARC64, and naturally I wanted this in my AFS
    space...

    My fix was to add the following patch to /usr/src/modules/openafs/src/afs/LINUX/osi_groups.c:

    ----- s n i p -----
    --- ./src/afs/LINUX/osi_groups.c~ Tue Aug 17 16:07:15 2004
    +++ ./src/afs/LINUX/osi_groups.c Tue Aug 17 16:31:17 2004
    @@ -178,6 +177,10 @@
    #endif

    #if defined(AFS_SPARC64_LINUX20_ENV) || defined(AFS_AMD64_LINUX20_ENV)
    +/* This is defined by include/asm-{arch}/posix_types.h */
    +/* TURBO: I took it from linux/types.h */
    +typedef __kernel_old_gid_t old_gid_t;
    +
    /* Intercept the uid16 system call as used by 32bit programs. */
    extern long (*sys32_setgroupsp)(int gidsetsize, old_gid_t *grouplist);
    asmlinkage long afs32_xsetgroups(int gidsetsize, old_gid_t *grouplist)
    ----- s n i p -----

    This is naturaly not the correct way, but I leave this to Sam
    to figure out...

    I'm using OpenAFS version '1.2.11-1.TF.1' (recompile for my semi-woody systems).
    --
    North Korea smuggle ammonium nuclear Peking subway radar killed [Hello
    to all my fans in domestic surveillance] genetic arrangements 767
    colonel pits congress
    [See http://www.aclu.org/echelonwatch/index.html for more about this]


    --