Xref: utzoo comp.unix.i386:7767 news.software.b:5459 Path: utzoo!attcan!lsuc!eci386!clewis From: clewis@eci386.uucp (Chris Lewis) Newsgroups: comp.unix.i386,news.software.b Subject: Re: C news fast stdio fails regression test on 386/ix. Message-ID: <1990Aug14.180838.16019@eci386.uucp> Date: 14 Aug 90 18:08:38 GMT References: <803@hades.ausonics.oz.au> <1990Aug10.154632.6474@zoo.toronto.edu> <1990Aug10.221410.8502@jdyx.UUCP> <1990Aug12.211727.17535@turnkey.tcc.com> Reply-To: clewis@eci386.UUCP (Chris Lewis) Organization: Elegant Communications Inc. Lines: 35 In article <1990Aug12.211727.17535@turnkey.tcc.com> jackv@turnkey.TCC.COM (Jack F. Vogel) writes: > Right setuid(geteuid()) just plain will not work, it doesn't work on AIX > either, in fact I suspect the majority of systems will not. Before trying this mechanism, I recommend checking your manuals. AIX 3 (RS/6000) even has the "setr[ug]id()" calls, but they're dummies that ALWAYS return failure (confuses Perl Configure somewhat). "setuid(geteuid())" will NEVER work on systems that reflect SVR5.3 setuid() semantics (eg: SVID compliant systems). The semantics are roughly (if effective ain't root): - you can only setuid(getruid()), OR - setuid(saved_uid); Which has the effect of changing the effective userid to the effective userid of the program. (eg: you can setuid to the real user, and you can setuid back to the original set-user-id, but NEITHER will change real id. C-news wants to be able to set the real userid) Worse, in SVR5.2 and previous, there's no saved-group concept (at least in our 3b1's that is) > However, there > is no reason not to use spacefor, it really is a nice feature. It is just > that it is the most system-dependent aspect to the whole Cnews package. > It is quite simple to get it to work with ISC. Change line 54 of the script > to look as follows: > df $arg | sed "s/.*://" | awk "BEGIN { nf = 1 ; nr = 1 } Even simpler, on our 1.0.6 386/ix, saying you have a "xenix" df works fine without having to muck with source. -- Chris Lewis, Elegant Communications Inc, {uunet!attcan,utzoo}!lsuc!eci386!clewis Ferret mailing list: eci386!ferret-list, psroff mailing list: eci386!psroff-list Psroff information/questions: psroff-request@eci386