[OpenAFS] unpagsh fails with recent glibc

Dr A V Le Blanc Dr A V Le Blanc <LeBlanc@mcc.ac.uk>
Thu, 3 Mar 2005 14:41:13 +0000


Some while ago someone -- probably Jeffrey Hutzelman -- published
here a program called 'unpagsh', which deletes AFS PAG groups
from a process or its children, and which has been very useful for
starting daemons without giving them a PAG.  Unfortunately the
program, which worked well with glibc-2.2.5, is failing when it is
run on a machine with glibc-2.3.2:

     # unpagsh
     getgroups: Invalid argument

Has anyone patched this to work with later versions of glibc?
In case anyone is interested, I enclose a copy of the source.

     -- Owen
     LeBlanc@mcc.ac.uk

begin 600 unpagsh.tgz
M'XL(`(TA)T("`^U6:V_;-A3U9_^*.Q=()<>))2=MAN8!I$76%D@?J-&AP!88
MBD1)7&G2("7'[K;_ODM*LB1;:9<!'5"`!S`LD?=]+J^8\T60J/0P['T_>(BG
MGF?^_>.GYM\KW\V6_Z3GG9R<>),GQT=ZW?=/CB8]\'K_`W*5!1+@FW)2B.Q;
M23:2ZOT@>$1YR/*(P)E:JW&V7A!UF%[TZ^6<4Y5%[34B)1?MI40NV@NH1,7.
M$J.WVVN2\D2O]1]%)*:<P/35U?4U#,:WE(]5.NCW*<^`JADVJJ,?>2)%OE`C
M2&@TRV!8O+JGA>`\H-R(!3()1Q"FR.YPB"]+M_]G'TJT5$\WRRWSY<-L'JS:
M$A3-PCEXZ+%:;LCB#I8R%#QV9M,7L[<O/[S[^'XZ>W/YR6V8B<%IZ9S#@>]"
M'6!3T)3;W=FJL,!](9U!Z770<%.!,$7NU8\7>:8VZHX+<4`9B9[!5OC`108%
M1]'O?-`?`1**OMU&'38.5S1S_$8D?]<R1=I8IGG`F`A;=1B"HE^(B!U#D+M5
ML9]*JCOJ5"8A\@Q$#',R%W*-039B?$B(?!-C0K+BN1GF"#8]UT'H_6163&V,
M#AX8ERE">13J8U#$LML@B<@$FB/A3*6$L09-XR&\$4M24:'%9*`(H%T8CG?*
M<'`.DSH>+.X<E9VV?]B'R>;,=/#8]/V.PZOW!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