🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22182

inn renumber is wrong (includes the solution)

#22182
From: Andrew R. Tefft
Date: Tue, 07 Oct 1997 00:00
40 lines
2429 bytes
(note: when I started writing this, I didn't have an answer.
Now I do. I'm posting it anyway in hopes that it helps someone out).

I have inn 1.5.1 on a solaris 2.4 machine. I have noticed
that ctlinnd renumber is setting the wrong low-water mark.
In many groups, it is set to the correct value but with the first
two digits chopped off. e.g. if it should be 41361 it is set to 361.
In others, there seems to be no correspondence with the actual articles
present (many are set to 1; comp.os.linux.misc for example is set to
855 where it should be 206584). 

If it weren't for those wildly inconsistent differences, it would
remind me of my first compilation of xv under Solaris. It expected
some different readdir() characteristics, I guess, and would chop
off the first character or two of filenames shown in the visual
schnauzer. And if I remember, the fix for this was to manage to not
link xv with -lucb. 

Looking at innd, it is indeed linked with -lucb. And it has only
been linked with -lucb since I turned on perl filtering, since
libperl needed some functions from libucb. This would explain why I
only noticed it recently, if the problem is indeed in libucb.

To try to fix this, I edited the Makefile in the innd directory, adding
-lc before -lucb. This ensures that libc's version of readdir() is
used instead of libucb's. All works fine now. woo hoo! I still can't
explain the wildly inconsistent ones but since I don't really understand
what's different between the readdir() functions (could be a bug, but
nothing shows up in sunsolve), I'm not going to try.

Ever notice how just collecting good info on your problem to ask
someone else sometimes helps to you solve the problem yourself?

-- 

Include the keyword "Tefft" or "maibock" somewhere in your message
to ensure it gets accepted by my spam filter. 

Technical Details
Message-ID: <EHoo9K.B61@erie.ge.com>
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: <EHoo9K.B61@erie.ge.com>
Subject: inn renumber is wrong (includes the solution)
Date: Tue, 07 Oct 1997 00:00:00 +0000
From: tf1007@erie.ge.com (Andrew R. Tefft)
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: 278448818
Sender: tf1007@erie.ge.com
X-Nntp-Posting-Host: csp195
Organization: GE Transportation Systems
Newsgroups: news.software.nntp