It seems that the foreground option is only available via the
freshclam.conf file, is this an oversight? because it shows as a valid
option when freshclam -h is issued at the command-line.
This can be solved with:
*** ../../clamav-0.84/freshclam/options.c Tue Apr 19 17:33:16 2005
--- options.c Thu May 12 11:47:57 2005
***************
*** 39,43 ****
struct optstruct *opt;
! const char *getopt_parameters = "hvdp:Vl:c:u:a:";
static struct option long_options[] = {
--- 39,43 ----
struct optstruct *opt;
! const char *getopt_parameters = "hvdfp:Vl:c:u:a:";
static struct option long_options[] = {
***************
*** 56,59 ****
--- 56,60 ----
{"stdout", 0, 0, 0},
{"daemon", 0, 0, 'd'},
+ {"foreground", 0, 0, 'f'},
{"pid", 1, 0, 'p'},
{"user", 1, 0, 'u'}, /* not used */
*** ../../clamav-0.84/freshclam/freshclam.c Tue Apr 19 17:33:15 2005
--- freshclam.c Thu May 12 11:27:07 2005
***************
*** 287,291 ****
bigsleep = 24 * 3600 / checks;
! if(!cfgopt(copt, "Foreground"))
daemonize();
--- 287,291 ----
bigsleep = 24 * 3600 / checks;
! if(!(optc(opt, 'f') || cfgopt(copt, "Foreground")))
daemonize();
--
Jorge Valdes
Intercom El Salvador
[EMAIL PROTECTED]
voz: ++(503) 278-5068
fax: ++(503) 265-7025
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html