Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!mcvax!ukc!pyrltd!slxsys!ibmpcug!ronald From: ronald@ibmpcug.UUCP (Ronald Khoo) Newsgroups: news.software.b Subject: Cnews setuid(geteuid) Message-ID: <10931@ibmpcug.UUCP> Date: 18 Jun 89 15:29:55 GMT Reply-To: Ronald.Khoo@ibmpcug.co.uk Organization: The IBM PC User Group, UK. Lines: 28 Cc: c-news@utstat.utoronto.ca (Because it's cheaper that way) Hi - I'm looking into installing Cnews next month, and was going through the bit in relaynews which decides whether to call setnewsids: I doubt that it will work on my machine, because setuid(geteuid()) does both: 1) Not work. 2) return 0 (!) How about a compromise? Rather than depending upon the return value of setuid, do a getuid() instead and see if it *really* worked ? Another question: Why does only the max field in active get expanded to 10 digits but not the min field? (I'm obviously missing something obvious here, but I can't find it in the docs/READMEs) System: SCO Xenix V.2.2.3 (I THINK it's based on a USG III kernel) and, as usual on a PC, a not-terribly-impressive disc subsystem which renders the machine unuseable during expire - hence the need to get Cnews up ASAP. Oh. While I'm here... is posting to n.s.b AND mailing to utstat!c-news the correct thing to do? -- Ronald Khoo @ The IBM PC User Group, PO Box 360, Harrow HA1 4LQ Phone: +44 -1- 863 1191 Domain: ronald@ibmpcug.CO.UK Path: ...!ukc!slxsys!ibmpcug!ronald Fax: +44 -1- 863 6095 My Opinions? Sell 'em if you can. See if I care!