Sun, 08 Aug 2021 14:40:26 +0200
fix error in dav add-user, if .dav dir doesn't exists
dav/config.c | file | annotate | diff | comparison | revisions | |
dav/main.c | file | annotate | diff | comparison | revisions |
--- a/dav/config.c Sun Aug 08 12:45:31 2021 +0200 +++ b/dav/config.c Sun Aug 08 14:40:26 2021 +0200 @@ -808,6 +808,10 @@ } int pwdstore_save(PwdStore *pwdstore) { + if(check_config_dir()) { + return 1; + } + char *pwfile = util_concat_path(ENV_HOME, ".dav/secrets.crypt"); int ret = pwdstore_store(pwdstore, pwfile); free(pwfile);