Article View: news.software.nntp
Article #60425Re: nnrpd error: cannot stat backoff_db '': No such file or directory?
From: Jeffrey M. Vinocur
Date: Sun, 15 Sep 2002 17:36
Date: Sun, 15 Sep 2002 17:36
36 lines
2284 bytes
2284 bytes
In article <yl8z23fa3r.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
>Jeffrey M Vinocur <jeff@litech.org> writes:
>> Russ Allbery <rra@stanford.edu> wrote:
>
>>> Yeah, definitely, although one that's probably fixed with the new parser.
>
>> backoffdb: ""
>
>> surely the parser treats that differently than no value at all.
>
>Well, yeah, true. If you go out of your way to break it... :)
I'm assuming that's what you get if you run a 'backoffdb:'
through innupgrade. What does the new parser do with a key with
no value?
>> - if (innconf->backoffdb)
>> + if (innconf->backoffdb && *innconf->backoffdb != '\0')
>
>Sounds good to me. ("" is arguably a valid directory equivalent to "." on
>some platforms, but I don't think we need to worry about that.)
I thought pretty hard about that. Especially since the error
message is correct (failed to open '') if not entirely helpful.
But it's a really obscure usage in this instance (why would you
put your backoff database in "."?), and clearly it doesn't work
on a perfectly sane platform.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<am2gfo$qnf$4@puck.litech.org>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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<40a8aa92.0209111149.3f2501c3@posting.google.com> <ylhegs15i3.fsf@windlord.stanford.edu> <am2cp6$qnf$3@puck.litech.org> <yl8z23fa3r.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <am2gfo$qnf$4@puck.litech.org> Subject: Re: nnrpd error: cannot stat backoff_db '': No such file or directory? Date: Sun, 15 Sep 2002 17:36:56 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <40a8aa92.0209111149.3f2501c3@posting.google.com> <ylhegs15i3.fsf@windlord.stanford.edu> <am2cp6$qnf$3@puck.litech.org> <yl8z23fa3r.fsf@windlord.stanford.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 35 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1032111416 27375 208.48.41.224 (15 Sep 2002 17:36:56 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sun, 15 Sep 2002 17:36:56 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)