--- clamav-0.90.3/clamd/clamd.c~	2007-06-18 17:22:13.000000000 +0100
+++ clamav-0.90.3/clamd/clamd.c	2007-06-18 17:22:18.000000000 +0100
@@ -69,6 +69,8 @@
 short debug_mode = 0, logok = 0;
 short foreground = 0;
 
+char* progname;
+
 static void help(void)
 {
     printf("\n");
@@ -107,6 +109,13 @@
 	    {0, 0, 0, 0}
     	};
 
+	progname = strrchr(argv[0], '/');
+
+	if( progname )
+		progname++;
+	else
+		progname = "clamd";
+
 #ifdef C_WINDOWS
     if(!pthread_win32_process_attach_np()) {
 	mprintf("!Can't start the win32 pthreads layer\n");
@@ -255,7 +264,7 @@
 	    return 1;
 	}
 
-	openlog("clamd", LOG_PID, fac);
+	openlog(progname, LOG_PID, fac);
 	logg_syslog = 1;
     }
 #endif
