# # http://www.gluelogic.com/code/ # diff -ruN clamav-0.71/shared/output.c clamav-0.71-new/shared/output.c --- clamav-0.71/shared/output.c 2004-05-11 13:09:32.000000000 -0400 +++ clamav-0.71-new/shared/output.c 2004-05-22 13:57:27.000000000 -0400 @@ -111,7 +111,11 @@ #endif if(!logg_fd) { old_umask = umask(0037); - if((logg_fd = fopen(logg_file, "a")) == NULL) { + if (strcmp(logg_file,"/dev/stderr") == 0) { + logg_fd = stderr; + umask(old_umask); + } + else if((logg_fd = fopen(logg_file, "a")) == NULL) { umask(old_umask); #ifdef CL_THREAD_SAFE pthread_mutex_unlock(&logg_mutex);