Index: rbldnsd.c
--- rbldnsd.c.orig	2004-06-09 23:39:21 +0200
+++ rbldnsd.c	2004-07-15 12:40:03 +0200
@@ -532,7 +532,6 @@
     }
     ipc_fd = pfd[1];
     close(pfd[0]);
-    openlog(progname, LOG_PID|LOG_NDELAY, LOG_DAEMON);
     logto = LOGTO_STDERR|LOGTO_SYSLOG;
     if (!quickstart && !flog) logto |= LOGTO_STDOUT;
   }
@@ -590,6 +589,8 @@
     if (setgroups(1, &gid) < 0 || setgid(gid) < 0 || setuid(uid) < 0)
       error(errno, "unable to setuid(%d:%d)", (int)uid, (int)gid);
 
+  openlog("rbldnsd", LOG_PID|LOG_NDELAY, LOG_DAEMON);
+
   for(c = 0; c < argc; ++c)
     zonelist = addzone(zonelist, argv[c]);
   init_zones_caches(zonelist);
