On Wed, 9 Mar 2005, Calin A. Culianu wrote:

;
; This patch modifies the 'virusaction' function in clamd/others.c, as well as
; all code that refers to this function (since the prototype changed).

Unfortunately, not all systems implement setenv() and unsetenv() - Solaris
for example. Can I suggest you re-implement this using putenv() and don't
worry about clearing the environment variables after (since there's no way
to do this on all systems!)

Of course, this relies on putenv() being portable but I think it is (it's
also thread safe, setenv() isn't guaranteed to be on all systems)

A.

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to