move config files to .config

This commit is contained in:
Florian Stinglmayr 2019-07-17 19:48:52 +02:00
parent ab65d49605
commit eebc9343b0

View File

@ -155,7 +155,7 @@ int main(int ac, char **av)
return 3; return 3;
} }
asprintf(&ncdc_private_dir, "%s/.ncdc", getenv("HOME")); asprintf(&ncdc_private_dir, "%s/.config/ncdc", getenv("HOME"));
if (mkdir(ncdc_private_dir, 0755) < 0) { if (mkdir(ncdc_private_dir, 0755) < 0) {
if (errno != EEXIST) { if (errno != EEXIST) {
fprintf(stderr, "failed to make %s: %s\n", ncdc_private_dir, fprintf(stderr, "failed to make %s: %s\n", ncdc_private_dir,