From: Pieter Lexis Date: Wed, 25 Nov 2015 18:06:16 +0000 (+0100) Subject: Rename the dnsdist history file to something less generic X-Git-Tag: dnsdist-1.0.0-alpha1~193^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=544d3cfd997089434c8e6234fc893dcb6bab3050;p=pdns Rename the dnsdist history file to something less generic --- 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("> ");