🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55313

getpwnam in inn2.3.2+ovdb2b4

#55313
From: Yuri Mikhaylov
Date: Fri, 23 Nov 2001 10:52
35 lines
1862 bytes
Hello,

I have problem with inn2.3.2+ovdb2b4. I receive error when run ovdb:

[12:43][mik@mik/ttyp5]~ #su news -c "ovdb_init -u"
Error: Only run this command as user news

in news.err:
  Nov 23 12:37:31 mik ovdb_init[47392]: /etc/pwd.db: Invalid argument
  Nov 23 12:37:31 mik ovdb_init[47392]: OVDB: getpwnam(news) failed: Invalid argument

And my small code work fine:
-----------
#include <sys/types.h>
#include <pwd.h>
#include <stdio.h>

void main()
{
         struct passwd *p;
         p = getpwnam("news");
         printf("%d\n", p );
}
-----------

[12:47][mik@mik/ttyp5]~/src#su news -c "./t"
672059200

What are you think about it?

-- 
Yuri Mikhaylov
Digital Generation, 235-9000

Technical Details
Message-ID: <3BFE2A75.6060500@dg.net.ua>
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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!europa.netcrusader.net!usenetserver.com!208.184.7.66!newsfeed1.cidera.com!Cidera!news2.dg.net.ua!news.dg.net.ua!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3BFE2A75.6060500@dg.net.ua>
Subject: getpwnam in inn2.3.2+ovdb2b4
Date: Fri, 23 Nov 2001 12:52:37 +0200
From: Yuri Mikhaylov <mik@dg.net.ua>
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-spur1.maxwell.syr.edu!news.maxwell.syr.edu!europa.netcrusader.net!usenetserver.com!208.184.7.66!newsfeed1.cidera.com!Cidera!news2.dg.net.ua!news.dg.net.ua!not-for-mail
Newsgroups: news.software.nntp
Organization: Digital Generation
Lines: 34
NNTP-Posting-Host: 213.186.192.67
Mime-Version: 1.0
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.dg.net.ua 1006512755 48093 213.186.192.67 (23 Nov 2001 10:52:35 GMT)
X-Complaints-To: usenet@news.dg.net.ua
NNTP-Posting-Date: Fri, 23 Nov 2001 10:52:35 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us