~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to lib/bind/irs/lcl_pr.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 */
50
50
 
51
51
#if defined(LIBC_SCCS) && !defined(lint)
52
 
static const char rcsid[] = "$Id: lcl_pr.c,v 1.1.206.1 2004/03/09 08:33:38 marka Exp $";
 
52
static const char rcsid[] = "$Id: lcl_pr.c,v 1.4 2006/03/09 23:57:56 marka Exp $";
53
53
#endif /* LIBC_SCCS and not lint */
54
54
 
55
55
/* extern */
85
85
struct pvt {
86
86
        FILE *          fp;
87
87
        char            line[BUFSIZ+1];
 
88
        char *          dbuf;
88
89
        struct protoent proto;
89
90
        char *          proto_aliases[MAXALIASES];
90
91
};
141
142
 
142
143
        if (pvt->fp)
143
144
                (void) fclose(pvt->fp);
 
145
        if (pvt->dbuf)
 
146
                free(pvt->dbuf);
144
147
        memput(pvt, sizeof *pvt);
145
148
        memput(this, sizeof *this);
146
149
}
202
205
                pr_rewind(this);
203
206
        if (!pvt->fp)
204
207
                return (NULL);
 
208
        if (pvt->dbuf) {
 
209
                free(pvt->dbuf);
 
210
                pvt->dbuf = NULL;
 
211
        }
205
212
        bufp = pvt->line;
206
213
        bufsiz = BUFSIZ;
207
214
        offset = 0;
270
277
                }
271
278
        }
272
279
        *q = NULL;
 
280
        pvt->dbuf = dbuf;
273
281
        return (&pvt->proto);
274
282
}
275
283
 
282
290
                pvt->fp = NULL;
283
291
        }
284
292
}
 
293
 
 
294
/*! \file */