Просмотр исходного кода

* Ported [2658] to 1.2.9 (Default datadir changed to ~/.ssh/... (address #162))

svn: 2659
Bryan Drewery 20 лет назад
Родитель
Сommit
d55d82a8c6
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/conf.c

+ 1 - 0
doc/UPDATES

@@ -49,6 +49,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed cmds showing failed cmdpass. (#188)
 * The respository is now stored in subversion; binaries now hold a revision number.
 * cmd_botcmd <?> now displays which bot is chosen in the log. (#192)
+* There is now a 'datadir' option in the binary config. The tempdir is still automatically found. (#162)
 
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.

+ 2 - 1
src/conf.c

@@ -366,7 +366,8 @@ init_conf()
   conf.uname = NULL;
   conf.username = NULL;
   conf.homedir = NULL;
-  conf.datadir = strdup("./...");
+  conf.datadir = strdup("~/.ssh/...");
+  expand_tilde(&conf.datadir);
 }
 
 void conf_checkpids()