3 messages in net.sourceforge.lists.courier-users[courier-users] authlib
FromSent OnAttachments
jona...@callisia.comJun 1, 2000 8:44 am 
Sam VarshavchikJun 1, 2000 2:52 pm 
jona...@callisia.comJun 7, 2000 7:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] authlibActions...
From:jona...@callisia.com (jona@callisia.com)
Date:Jun 1, 2000 8:44:34 am
List:net.sourceforge.lists.courier-users

Hello,

I am writing a authmodule using authlib and am having one problem. The module forks then opens up a pipe between parent/child and the child changes uid to read in a user controlled gdbm file. The parent waits for success or failure. Everything is ok if the auth succeeds, but if it fails the module crashes or exits in

authlib/chain.c line 32

if (!prog || open("/dev/null", O_RDONLY) != 3) authexit(1);

Im sure its my fault , but I don't understand what we are checking here for ? Why open /dev/null and why on fd 3 ?

Thanks,