]> granicus.if.org Git - pdns/commitdiff
Rename the dnsdist history file to something less generic
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 25 Nov 2015 18:06:16 +0000 (19:06 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 26 Nov 2015 08:55:54 +0000 (09:55 +0100)
pdns/dnsdist.cc

index 19878339e855961d92671197e8af485b13a765ce..87f359491c904efa3e5c70e713f7d2c74a93dbf5 100644 (file)
@@ -797,12 +797,12 @@ void doClient(ComboAddress server, const std::string& command)
 
   set<string> 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<string> 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("> ");