🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #654

Re: Tin bugs ?

#654
From: H}kan Lennest}l
Date: Fri, 27 Sep 1991 23:53
36 lines
1838 bytes
hakanl@lulea.telesoft.se (H}kan Lennest}l) writes:
: I have a couple of problems with tin 1.0 PL2.
: 
: First: The contents of my .newsrc file disappears.
: Second: When running as setuid news, tin is unable to create the .index files.
: 
: I do not have any of thees problems with Tass 3.2.
: 
: Are there some bugs around, or is it me ?
: 
: I am running on SunOS 4.1 (sun4).
: 
: 
:
I found thees things out myself (after some investigation ...)
The first problem is caused by inteference with "rn". Rn makes .oldnewsrc
as a hard link to .newsrc. Tin copies .newsrc to .oldnewsrc, the file gets
copied to itself, and the result is an empty file. The solution is to put
an "unlink()" of .oldnewsrc in the code before the backup copy is done
(in newsrc.c).

The second problem is due to bad system calls (at least on SunOS).
Replace the setuid() and setgid() calls in misc.c with seteuid() and
setegid().

I hope this helps someone.

  o
/Hakan


-- 
--------------------------------------------------------------------------------
 E-mail: hakanl@lulea.telesoft.se       | Hakan Lennestal, Telia Research AB
 Fax:    +46-920-75490                  | Aurorum 6
 Voice:  +46-920-75459                  | S-95175 LULEA
Technical Details
Message-ID: <3787@lulea.telesoft.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!mcsun!news.funet.fi!sunic!loke!lulea.telesoft.se!hakanl
References: <3784@lulea.telesoft.se>

Show Full Headers
Complete Article Headers
Message-ID: <3787@lulea.telesoft.se>
Subject: Re: Tin bugs ?
Date: Fri, 27 Sep 1991 23:53:33 +0000
From: hakanl@lulea.telesoft.se (H}kan Lennest}l)
References: <3784@lulea.telesoft.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!mcsun!news.funet.fi!sunic!loke!lulea.telesoft.se!hakanl
Newsgroups: news.software.readers
Organization: Telia Research AB, Lulea, Sweden
Lines: 36