From 9ae68b5e4c38b8822dc10b78ff9b26472d83427d Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 10 Jul 2004 15:00:34 +0000 Subject: [PATCH] @@ -3,8 +3,9 @@ * Fix error in prototype in definition of adns__parse_domain. * New LICENCE.WAIVERS file for GPL-incompatility workarounds. * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary. + * Allow `;'-comments in resolv.conf (report from Colin Charles). - -- + -- adns (1.1); urgency=medium --- changelog | 3 ++- src/setup.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog b/changelog index e7b7949..fb82e76 100644 --- a/changelog +++ b/changelog @@ -3,8 +3,9 @@ adns (1.2); urgency=medium * Fix error in prototype in definition of adns__parse_domain. * New LICENCE.WAIVERS file for GPL-incompatility workarounds. * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary. + * Allow `;'-comments in resolv.conf (report from Colin Charles). - -- + -- adns (1.1); urgency=medium diff --git a/src/setup.c b/src/setup.c index c3452b0..38be621 100644 --- a/src/setup.c +++ b/src/setup.c @@ -416,7 +416,7 @@ static void readconfiggeneric(adns_state ads, const char *filename, linebuf[l]= 0; p= linebuf; while (ctype_whitespace(*p)) p++; - if (*p == '#' || !*p) continue; + if (*p == '#' || *p == ';' || !*p) continue; q= p; while (*q && !ctype_whitespace(*q)) q++; dirl= q-p; -- 2.30.2