X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client_common.c;h=3b90000f90ccdcc64be78e98e564bddc9cff3adb;hb=420a1f30cc06482f36371d096635846f8800e198;hp=43527ddb71647eee5936760cda40e722085b21f8;hpb=7e1d89b8086f022ab2a7e5ceedba2acd8c964b52;p=paraslash.git diff --git a/client_common.c b/client_common.c index 43527ddb..3b90000f 100644 --- a/client_common.c +++ b/client_common.c @@ -578,8 +578,9 @@ int client_parse_config(int argc, char *argv[], struct client_task **ct_ptr, if (CLIENT_OPT_GIVEN(KEY_FILE, lpr)) kf = para_strdup(CLIENT_OPT_STRING_VAL(KEY_FILE, lpr)); else { + struct stat statbuf; kf = make_message("%s/.paraslash/key.%s", home, user); - if (!file_exists(kf)) { + if (stat(kf, &statbuf) != 0) { /* assume file does not exist */ free(kf); kf = make_message("%s/.ssh/id_rsa", home); }