diff options
author | Stef Walter <stef@memberwebs.com> | 2008-07-02 20:32:39 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-07-02 20:32:39 +0000 |
commit | d8f7b96b39016dc6976a80d46eaebea950b89b55 (patch) | |
tree | 602587cb94d5e168ad8453d9a6354689417b0aae | |
parent | 7ad0489523ada84a8f5f0497befc8684fb6f5f79 (diff) |
Version 0.2
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | plugin/dnsnotify.c | 2 | ||||
-rw-r--r-- | tools/notify-dns-slaves.c | 8 |
4 files changed, 15 insertions, 3 deletions
@@ -1,2 +1,6 @@ +Version 0.2 + - Lookup zone name properly + - Fix crashers and build problems + Version 0.1 - Initial version diff --git a/configure.in b/configure.in index f366211..34eedb4 100644 --- a/configure.in +++ b/configure.in @@ -36,8 +36,8 @@ dnl Stef Walter <stef@memberwebs.com> dnl dnl Process this file with autoconf to produce a configure script. -AC_INIT(slapi-dnsnotify, 0.1, stef@memberwebs.com) -AM_INIT_AUTOMAKE(slapi-dnsnotify, 0.1) +AC_INIT(slapi-dnsnotify, 0.2, stef@memberwebs.com) +AM_INIT_AUTOMAKE(slapi-dnsnotify, 0.2) LDFLAGS="$LDFLAGS -L/usr/local/lib" CFLAGS="$CFLAGS -I/usr/local/include" diff --git a/plugin/dnsnotify.c b/plugin/dnsnotify.c index c24b90c..58f4bec 100644 --- a/plugin/dnsnotify.c +++ b/plugin/dnsnotify.c @@ -269,7 +269,7 @@ notify_dns_slaves (char *zone, char **ns) if (write_all (dnsnotify_pipe, "NOTIFY: ", 8) < 0 || write_all (dnsnotify_pipe, zone, strlen (zone)) < 0 || write_all (dnsnotify_pipe, " ", 1) < 0 || - write_all (dnsnotify_pipe, *ns, strlen (*ns)) < 0 || + write_all (dnsnotify_pipe, n, strlen (n)) < 0 || write_all (dnsnotify_pipe, "\n", 1) < 0) { if (errno == EPIPE) { complete = 0; diff --git a/tools/notify-dns-slaves.c b/tools/notify-dns-slaves.c index a21ca1b..dfe74d1 100644 --- a/tools/notify-dns-slaves.c +++ b/tools/notify-dns-slaves.c @@ -136,6 +136,7 @@ typedef struct _notification { static notification *the_notifications = NULL; #define WHITESPACE " \t\r\n\v" +#define LOG_NORMAL 1 /* -------------------------------------------------------------------------------- * WARNINGS AND LOGGING @@ -148,8 +149,10 @@ vmessage(int level, int erno, const char* msg, va_list ap) char buf[MAX_MSGLEN]; size_t len; +#if LOG_NORMAL if(debug_level < level) return; +#endif assert (msg); @@ -166,7 +169,9 @@ vmessage(int level, int erno, const char* msg, va_list ap) } /* Either to syslog or stderr */ +#if LOG_NORMAL if (is_helper && level != LOG_DEBUG) +#endif vsyslog (level, buf, ap); vwarnx (buf, ap); @@ -435,6 +440,9 @@ address_resolved (int ecode, struct addrinfo *ai, void *arg) for (not = &the_notifications; *not; not = &(*not)->next) { notif = *not; + if (arg != notif) + continue; + /* A bummer resolve */ if (ecode) { warningx ("couldn't resolve server: %s: %s", |