mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +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.
|
347. [bug] Don't crash if an argument is left off options in dig.
|
||||||
|
|
||||||
346. [func] Add support for .digrc config file, in the
|
346. [placeholder]
|
||||||
user's current directory
|
|
||||||
|
|
||||||
345. [bug] Large-scale changes/cleanups to dig:
|
345. [bug] Large-scale changes/cleanups to dig:
|
||||||
* Significantly improve structure handling
|
* Significantly improve structure handling
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 <config.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -1140,14 +1140,17 @@ parse_args(isc_boolean_t is_batchfile, isc_boolean_t config_only,
|
|||||||
|
|
||||||
#ifndef NOPOSIX
|
#ifndef NOPOSIX
|
||||||
/*
|
/*
|
||||||
* Treat .digrc as a special batchfile
|
* Treat ${HOME}/.digrc as a special batchfile
|
||||||
*/
|
*/
|
||||||
|
INSIST(batchfp == NULL);
|
||||||
homedir = getenv("HOME");
|
homedir = getenv("HOME");
|
||||||
if (homedir != NULL)
|
if (homedir != NULL) {
|
||||||
snprintf(rcfile, sizeof(rcfile), "%s/.digrc", homedir);
|
unsigned int n;
|
||||||
else
|
n = snprintf(rcfile, sizeof(rcfile), "%s/.digrc",
|
||||||
strcpy(rcfile, ".digrc");
|
homedir);
|
||||||
batchfp = fopen(rcfile, "r");
|
if (n < sizeof(rcfile))
|
||||||
|
batchfp = fopen(rcfile, "r");
|
||||||
|
}
|
||||||
if (batchfp != NULL) {
|
if (batchfp != NULL) {
|
||||||
while (fgets(batchline, sizeof(batchline),
|
while (fgets(batchline, sizeof(batchline),
|
||||||
batchfp) != 0) {
|
batchfp) != 0) {
|
||||||
|
Reference in New Issue
Block a user