From 6e105f6aa93fb76dfc790776724df5f2015728b0 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Mon, 20 Feb 2023 23:46:59 +0300 Subject: [PATCH] refactor(tfm): change config file location --- tfm/cli/tfm-cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tfm/cli/tfm-cli.c b/tfm/cli/tfm-cli.c index 7109771..c8b87c3 100644 --- a/tfm/cli/tfm-cli.c +++ b/tfm/cli/tfm-cli.c @@ -7,7 +7,7 @@ #include "../../include/tanabata.h" // TFM configuration directory -#define TFM_CONFIG_DIR "/etc/tfm/" +#define TFM_CONFIG_DIR "/etc/tanabata/" // Stylization macros #define TABLE_HEADER(s) ""s"" @@ -363,7 +363,7 @@ int main(int argc, char **argv) { return 1; } char *tanabata_path; - FILE *config = fopen(TFM_CONFIG_DIR"/config", "r"); + FILE *config = fopen(TFM_CONFIG_DIR"tfm-cli.conf", "r"); if (config == NULL) { tanabata_path = NULL; struct stat st; @@ -374,7 +374,7 @@ int main(int argc, char **argv) { return 1; } } - config = fopen(TFM_CONFIG_DIR"/config", "w"); + config = fopen(TFM_CONFIG_DIR"tfm-cli.conf", "w"); if (config == NULL) { fprintf(stderr, ERROR("Failed to create config file. " "Try again with 'sudo' or check your permissions")"\n");