🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #768

Re: motd always shown

#768
From: Aidan Saunders
Date: Sat, 28 Jul 1990 13:55
43 lines
1985 bytes
wilson@issun3.stc.nl (Tony Wilson) writes:

>In <1990Jul25.114459.1108@newcastle.ac.uk> A.C.G.Saunders@newcastle.ac.uk (Aidan Saunders) writes:

>>I'm using nn 6.4.9 under SunOS 4.1 and have a slight problem 
>>with the motd:

>>The motd is always shown when I start nn even if CLIENT/motd
>>hasn't been changed since I last used nn.

>>Has anyone else had this situation ?

>Yes, the same thing is happening here.  There is a file called .motd
>in your .nn directory, and if you touch that, so that it's date and
>time are later than the $LIB/motd file, then the message will not
>appear.


The following patch is a temporary fix for this motd problem, supplied 
by Kim Storm.  It cures the problem on my SunOS 4.1

*** LAST/nn.c	Thu Jul 19 18:12:21 1990
--- nn.c	Fri Jul 27 18:23:56 1990
***************
*** 559,564 ****
--- 559,565 ----
  
      if (last_motd >= cur_motd) return 0;
  
+     unlink(dot_motd);
      fclose(open_file(dot_motd, OPEN_CREATE|MUST_EXIST));
  
      clrdisp();



Aidan Saunders

--
----------------------------------------------
ARPA :: a.c.g.saunders@newcastle.ac.uk
UUCP :: ...!ukc!newcastle.ac.uk!a.c.g.saunders
----------------------------------------------
Technical Details
Message-ID: <1990Jul28.135529.19866@newcastle.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!ukc!newcastle.ac.uk!shire!aidan
References: <1990Jul25.114459.1108@newcastle.ac.uk> <1990Jul26.131007.821@issun3.stc.nl>

Show Full Headers
Complete Article Headers
Message-ID: <1990Jul28.135529.19866@newcastle.ac.uk>
Subject: Re: motd always shown
Date: Sat, 28 Jul 1990 13:55:29 +0000
From: A.C.G.Saunders@newcastle.ac.uk (Aidan Saunders)
References: <1990Jul25.114459.1108@newcastle.ac.uk> <1990Jul26.131007.821@issun3.stc.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!ukc!newcastle.ac.uk!shire!aidan
Newsgroups: news.software.nn
Sender: news@newcastle.ac.uk
Distribution: news
Organization: Chemical & Process Engineering Dept, University of Newcastle, UK.
Lines: 43
Posted: Sat Jul 28 14:55:29 1990