Date: Mon, 14 Apr 1997 15:39:08 +0100 (BST) From: Zefram Message-Id: <25042.199704141439@stone.dcs.warwick.ac.uk> Subject: SysVinit patch To: miquels@drinkel.cistron.nl Hi. Enclosed is a patch for SysVinit that I am finding tiresome to keep updating; you might like to fold it into your official releases. It does the following: * shutdown: use /etc/shutdown.allow if an option -s is given instead of testing for a controlling tty. The tty check was inflexible and unreliable. * sulogin(8): refer to inittab(5) instead of inittab(4). * sulogin: use libc passwd/shadow functions instead of home-grown ones (there's just no point in using the special version). * shutdown/sulogin: don't rely on the username "root" -- it's the UID that counts. -zefram begin 644 initdiffs.gz M'XL(``IG43,"`^T[:U/;R+*?E5_1>&L3&\G&#Y[FD%H")/%9)U"8G-0](44) M>62KD"6M1K+7)YO_?KM[1K)DFP"[V:T]=2^5`FFFIZ??W=.C##W7A;H3@YS+ MJ1=X2;W=V#W8DN,T&8:SH+%?GC`+,\\V-S?O76:\CCWX9QI`:QO_=3N[W68; M6@<'N\_J]?K].(T!+CF.8FAUH-WI-G>Z.QU:MD>;%7]X\U;+:NT!OP(T7L&6 MO/6"'!N-7;Z"3W!=3^BY=PE2./#YV48^'M^-`\?%(9J&Q)L(7M3#R9D=!UXP MJD^$E/9(*)CKRM>O7YD#M34^U?_0UO*I>Z\3P^Z!M;>MQ$"DX>M^*R--_!KY M-DHZC.>0H0L#2,8"G'`RL8,A^%X@<,!.8.;Y/MP*I#5((`G!]GU$D4H1R\:" M!),>OGSY`E"7]-*[@&OWU75=7KL7^'X6R#36"&U>#'::C,/8DV)(6$E(0%)B M*M`4$C$!3X(?CD8(X04-Q'(UQA'\%X3Q!,F8$Z(AS,8BH,TR.>..!.0@!,[> MSFF.[`K'J_LU"_'PBI,D]NO'?E(_%3[!1S%*0@P;``,A%!7"2;R0.'0=G MX20,DCCT%4^WP@]GX(8Q3$+DS0M<(HM6-)0X2"Z0RR53)DNF1V^$!N`C$:,E MP/:^WJJ;.U9K8=?(TLG59;]^W+^JGY[UB64;:=`\6,2U$PLD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