On 2008-09-30 20:12, Jason Staudenmayer wrote:
> Here's the patch
>
> diff -crB clamav-0.94-orig/clamd/clamd.c clamav-0.94/clamd/clamd.c
> *** clamav-0.94-orig/clamd/clamd.c 2008-08-20 04:52:25.000000000 -0400
> --- clamav-0.94/clamd/clamd.c 2008-09-30 10:53:28.000000000 -0400
> ***************
> *** 230,240 ****
> char timestr[32];
> logg_file = cpt->strarg;
> if(strlen(logg_file) < 2 || (logg_file[0] != '/' && logg_file[0] !=
> '\\' && logg_file[1] != ':')) {
> ! fprintf(stderr, "ERROR: LogFile requires full path.\n");
> logg_close();
> freecfg(copt);
> return 1;
> ! }
> time(&currtime);
> if(logg("#+++ Started at %s", cli_ctime(&currtime, timestr,
> sizeof(timestr)))) {
> fprintf(stderr, "ERROR: Problem with internal logger. Please check
> the permissions on the %s file.\n", logg_file);
> --- 230,244 ----
> char timestr[32];
> logg_file = cpt->strarg;
> if(strlen(logg_file) < 2 || (logg_file[0] != '/' && logg_file[0] !=
> '\\' && logg_file[1] != ':')) {
> ! if (strcmp(logg_file,"stderr")!=0) {
> ! fprintf(stderr, "ERROR: LogFile requires full path.\n");
> logg_close();
> freecfg(copt);
> return 1;
> ! }else {
> ! use_stderr=1;
>
So this is line 239 for you, right?
use_stderr is a variable added by your patch. All I can say is that you
should verify that the patch was applied correctly.
Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml