[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-anubis] Re: GNU Anubis 3.9.92
From: |
Dominique Bordereaux |
Subject: |
[bug-anubis] Re: GNU Anubis 3.9.92 |
Date: |
Mon, 25 Aug 2003 16:32:16 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
Good day Wojciech,
Good day Sergey,
>* New option `tracefile'
> -- This option instructs the program to log the execution
> of tests and actions from the RULE sections.
>* New action command `gpg-sign-encrypt' (or `gpg-se' for a shortcut).
> -- This option simultaneously signs and encrypts your outgoing
> message. It has the same effect as `gpg' command line switch `-se'.
>
To be able to successfully use those 2 features, I had to comment in the
code of
void open_rcfile(int method) in rc.c, the 3 following lines
static int ctr = 0;
if (ctr++ > 0)
return;
I've set-up anubis in such a way that my rules are in my user's .anubisrc.
In such a setup, the value of ctr climbs up to 2:
* at startup time ctr=0
the daemon is able to read the /etc/anubisrc
* just before calling identd, ctr = 1
the daemon tries to open /etc/anubisrc a second time
open_rcfile function returns without reading /etc/anubisrc.
I guess it is not a problem.
* After the user has been authenticated, ctr = 2
The process spawned by the daemon tries to open
/home/dbordereaux/.anubisrc.
open_rcfile function returns again without reading
/home/dbordereaux/.anubisrc which becomes a problem since my rules
are note read.
I guess that commenting those 3 lines was not the way to go but now the
ball is on your side, guys!
Best regards,
--
Dominique