🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Yuri Mikhaylov Fri, 23 Nov 2001 10:52
getpwnam in inn2.3.2+ovdb2b4
#55313
Author: 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

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads