Xref: utzoo news.software.nn:540 news.software.b:4859 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!ncr-sd!serene!telesys!kreed From: kreed@telesys.cts.com (Kevin W. Reed) Newsgroups: news.software.nn,news.software.b Subject: Fix for SCO posting with nnpost to cnews Summary: Fixes cnews so that nn can post, forward and mail Keywords: nnpost nn cnews posting Message-ID: <1990May29.224134.6404@telesys.cts.com> Date: 29 May 90 22:41:34 GMT Organization: TeleSys Development Systems, San Diego, CA Lines: 84 The following is how I fixed my posting problems using nn 6.4.3 and Cnews. History: SCO Xenix 386 2.3.2 Could not post, mail or forward using nn 6.4.3 on a Cnews system. Actually the article could be posted but the users name would be missing. Mail and forwarding did not work at all. Cnews 'postnews' work without any problems. Solution: It seems that for some reason, when inews is called from nn it is no longer attached to a terminal (?) and since this is so, who am i fails. When called from postnews it works ok. What I did (with the help of Geoff Collyer as he pointed out what was wanted), I removed the section that didn't work with a simple USER=`/usr/bin/logname' and Wala.... it works... I still don't know what the ypmatch is, but it evidently doesn't get that far... Below is a diff file for the change. BTW: I liked the comment in anne.jones :-) # dig up user's name (a simple task, you'd think, but you'd be wrong) Thanks for the help guys... <> *** anne.jones Tue May 29 14:10:40 1990 --- anne.jones.new Tue May 29 14:10:18 1990 *************** *** 28,58 # badsites="pucc.bitnet!" # tailor, syntax is "host1!host2!...host3!" host="$mailname" ! # dig up user's name (a simple task, you'd think, but you'd be wrong) ! case "$LOGNAME" in ! "") ! # "who am i" on many Unixes does "ttyname(0)" and "getpwuid(getuid())" ! # if that fails - it can be confused by empty utmp entries (per jerqs); ! # "who am i