From 544d3cfd997089434c8e6234fc893dcb6bab3050 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 25 Nov 2015 19:06:16 +0100 Subject: [PATCH] Rename the dnsdist history file to something less generic --- pdns/dnsdist.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 19878339e..87f359491 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -797,12 +797,12 @@ void doClient(ComboAddress server, const std::string& command) set dupper; { - ifstream history(".history"); + ifstream history(".dnsdist_history"); string line; while(getline(history, line)) add_history(line.c_str()); } - ofstream history(".history", std::ios_base::app); + ofstream history(".dnsdist_history", std::ios_base::app); string lastline; for(;;) { char* sline = readline("> "); @@ -846,12 +846,12 @@ void doConsole() { set dupper; { - ifstream history(".history"); + ifstream history(".dnsdist_history"); string line; while(getline(history, line)) add_history(line.c_str()); } - ofstream history(".history", std::ios_base::app); + ofstream history(".dnsdist_history", std::ios_base::app); string lastline; for(;;) { char* sline = readline("> "); -- 2.40.0