mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 23:55:27 +00:00
remove broken (unreachable) undocumented ./.digrc support.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -2056,8 +2056,7 @@
|
||||
|
||||
347. [bug] Don't crash if an argument is left off options in dig.
|
||||
|
||||
346. [func] Add support for .digrc config file, in the
|
||||
user's current directory
|
||||
346. [placeholder]
|
||||
|
||||
345. [bug] Large-scale changes/cleanups to dig:
|
||||
* Significantly improve structure handling
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dig.c,v 1.161 2001/09/13 01:42:21 marka Exp $ */
|
||||
/* $Id: dig.c,v 1.162 2001/09/13 03:02:59 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
@@ -1140,14 +1140,17 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
|
||||
|
||||
#ifndef NOPOSIX
|
||||
/*
|
||||
* Treat .digrc as a special batchfile
|
||||
* Treat ${HOME}/.digrc as a special batchfile
|
||||
*/
|
||||
INSIST(batchfp == NULL);
|
||||
homedir = getenv("HOME");
|
||||
if (homedir != NULL)
|
||||
snprintf(rcfile, sizeof(rcfile), "%s/.digrc", homedir);
|
||||
else
|
||||
strcpy(rcfile, ".digrc");
|
||||
if (homedir != NULL) {
|
||||
unsigned int n;
|
||||
n = snprintf(rcfile, sizeof(rcfile), "%s/.digrc",
|
||||
homedir);
|
||||
if (n < sizeof(rcfile))
|
||||
batchfp = fopen(rcfile, "r");
|
||||
}
|
||||
if (batchfp != NULL) {
|
||||
while (fgets(batchline, sizeof(batchline),
|
||||
batchfp) != 0) {
|
||||
|
Reference in New Issue
Block a user