🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #35131

Inn 2.2 errno problems on Linux

#35131
From: John Grosen
Date: Tue, 02 Feb 1999 00:00
25 lines
1595 bytes
I recently upgraded a news server here running Linux (2.0.36) to Inn
2.2.  I am having a bizarre problem with code like the following in
innd:

if (unlink(file) < 0 && errno != ENOENT) {
    syslog(blah, blah);
    exit(1);
}

In the error log I get the following:

Innd: cant unlink file: no such file or directory

Clearly, errno must not be getting set properly for the test but is
set by the time the syslog function is called. In order to get things
running I removed the test for the return value of unlink. Has anyone
else seen a similar problem?

-- 
Johannes "John" Grosen, Assoc. Dir.		NDHECN South Host Site
Information Technology Services			http://www.nodak.edu/
North Dakota State University			http://www.ndsu.nodak.edu/
Fargo, ND 58105-5164

Technical Details
Message-ID: <slrn7be0a4.1q7.grosen@dilbert.cc.ndsu.nodak.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn7be0a4.1q7.grosen@dilbert.cc.ndsu.nodak.edu>
Subject: Inn 2.2 errno problems on Linux
Date: Tue, 02 Feb 1999 00:00:00 +0000
From: grosen@dilbert.cc.ndsu.nodak.edu (John Grosen)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 439749483
Sender: UNKNOWN@dilbert.cc.ndsu.nodak.edu
X-Complaints-To: abuse@ndsu.nodak.edu
X-Trace: news.ndsu.nodak.edu 917963076 11673 134.129.71.17 (2 Feb 1999 13:44:36 GMT)
Organization: North Dakota State University
User-Agent: slrn/0.9.5.4 (UNIX)
Reply-To: John_Grosen@ndsu.nodak.edu
NNTP-Posting-Date: 2 Feb 1999 13:44:36 GMT
Newsgroups: news.software.nntp