diff options
author | Tomas Krizek <tomas.krizek@nic.cz> | 2018-01-12 10:29:53 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-01-24 11:52:47 +0100 |
commit | 564c46735a1377db6ab1ca5ba020c3b5dce03fe6 (patch) | |
tree | 40a13ea5f5e9319d82cffd91445de2e849f8c49a /client | |
parent | Merge !405: Support for tracing query execution logs (diff) | |
download | knot-resolver-564c46735a1377db6ab1ca5ba020c3b5dce03fe6.tar.xz knot-resolver-564c46735a1377db6ab1ca5ba020c3b5dce03fe6.zip |
use common convention for configuration path and user name
Diffstat (limited to 'client')
-rw-r--r-- | client/kresc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/kresc.c b/client/kresc.c index 5f38d4f8..42dba345 100644 --- a/client/kresc.c +++ b/client/kresc.c @@ -90,7 +90,7 @@ const char *get_type_name(const char *value) static void complete_function(EditLine * el) { - //Add left parenthesis to function name. + //Add left parenthesis to function name. el_insertstr(el, "("); } @@ -392,7 +392,7 @@ static int interact() //Create necessary folders. char *dirs[3] = { afmt("%s/.local", home), afmt("%s/.local/share", home), - afmt("%s/.local/share/kresd/", home) + afmt("%s/.local/share/knot-resolver/", home) }; bool ok = true; for (int i = 0; i < 3; i++) { @@ -403,12 +403,12 @@ static int interact() } if (ok) { hist_file = - afmt("%s/.local/share/kresd/" HISTORY_FILE, home); + afmt("%s/.local/share/knot-resolver/" HISTORY_FILE, home); } } else { - if (!mkdir(afmt("%s/kresd/", data_home), 0755) + if (!mkdir(afmt("%s/knot-resolver/", data_home), 0755) || errno == EEXIST) { - hist_file = afmt("%s/kresd/" HISTORY_FILE, data_home); + hist_file = afmt("%s/knot-resolver/" HISTORY_FILE, data_home); } } |