dav/config.c

changeset 732
b0eb645cd26e
parent 731
e0358fa1a3b1
child 734
b2cd82149116
--- 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);

mercurial