diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-12-06 09:23:52 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-12-06 09:23:52 +0200 |
commit | eabd52462bfdb409121b351f198d535649d2b3b9 (patch) | |
tree | 434ec71438df3c822d34fc0b8d83fa977264c546 /src/init.c | |
parent | bd85acf6a408674bcdcb5116963fe4fea2247280 (diff) | |
download | ck-eabd52462bfdb409121b351f198d535649d2b3b9.tar.gz ck-eabd52462bfdb409121b351f198d535649d2b3b9.tar.bz2 ck-eabd52462bfdb409121b351f198d535649d2b3b9.zip |
Add log to file, fix list ckconf bug
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -59,6 +59,14 @@ static int init_create_config_file(UserOpt *opt) { strcat(tmp, "\n"); fputs(tmp, f); + strcpy(tmp, "# Uncomment this line to enable logging in file\n"); + fputs(tmp, f); + + strcpy(tmp, "# log_dir = "); + strcat(tmp, opt->confDir); + strcat(tmp, "\n"); + fputs(tmp, f); + fclose(f); return 0; } |