--- 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);