]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Replace get_homedir() by get_confdir().
[paraslash.git] / client_common.c
index e207684e61121b18333ce3a99b476b8f92511d6c..e67a938b4df8aa69c2536505ce86c5017ab469b2 100644 (file)
@@ -582,11 +582,11 @@ int client_parse_config(int argc, char *argv[], struct client_task **ct_ptr,
                kf = para_strdup(CLIENT_OPT_STRING_VAL(KEY_FILE, lpr));
        else {
                struct stat statbuf;
-               const char *home = get_homedir();
-               kf = make_message("%s/.paraslash/key.%s", home, user);
+               const char *confdir = get_confdir();
+               kf = make_message("%s/key.%s", confdir, user);
                if (stat(kf, &statbuf) != 0) { /* assume file does not exist */
                        free(kf);
-                       kf = make_message("%s/.ssh/id_rsa", home);
+                       kf = make_message("%s/.ssh/id_rsa", confdir);
                }
        }
        PARA_INFO_LOG("user: %s\n", user);