head 1.1; access; symbols OPENPKG_E1_MP_HEAD:1.1 OPENPKG_E1_MP:1.1 OPENPKG_E1_MP_2_STABLE:1.1 OPENPKG_E1_FP:1.1 OPENPKG_2_STABLE_MP:1.1 OPENPKG_2_STABLE_20061018:1.1 OPENPKG_2_STABLE_20060622:1.1 OPENPKG_2_STABLE:1.1.0.10 OPENPKG_2_STABLE_BP:1.1 OPENPKG_2_5_RELEASE:1.1 OPENPKG_2_5_SOLID:1.1.0.8 OPENPKG_2_5_SOLID_BP:1.1 OPENPKG_2_4_RELEASE:1.1 OPENPKG_2_4_SOLID:1.1.0.6 OPENPKG_2_4_SOLID_BP:1.1 OPENPKG_CW_FP:1.1 OPENPKG_2_3_RELEASE:1.1 OPENPKG_2_3_SOLID:1.1.0.4 OPENPKG_2_3_SOLID_BP:1.1 OPENPKG_2_2_RELEASE:1.1 OPENPKG_2_2_SOLID:1.1.0.2 OPENPKG_2_2_SOLID_BP:1.1; locks; strict; comment @# @; 1.1 date 2004.07.15.10.44.51; author rse; state Exp; branches; next ; desc @@ 1.1 log @new package: rbldnsd 0.993p1 (Realtime Blackhole List (RBL) DNS Daemon) @ text @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); @