]> andersk Git - gssapi-openssh.git/commitdiff
bug fix: logic in unlink() test for removing cred file was wrong OPENSSH_3_4P1_GSI_20020923
authorjbasney <jbasney>
Mon, 23 Sep 2002 17:40:42 +0000 (17:40 +0000)
committerjbasney <jbasney>
Mon, 23 Sep 2002 17:40:42 +0000 (17:40 +0000)
openssh/gss-serv.c

index 4c84360947a8403be644b3829da1fdca33860f02..53321ace45dedaddff3b7f1ccad01b2ab804d3ad 100644 (file)
@@ -377,7 +377,7 @@ ssh_gssapi_cleanup_creds(void *ignored)
 
        if (gssapi_cred_store.filename!=NULL) {
                /* Unlink probably isn't sufficient */
-               debug("removing gssapi cred file\"%s\"",gssapi_cred_store.filename);
+               debug("removing gssapi cred file \"%s\"",gssapi_cred_store.filename);
                unlink(gssapi_cred_store.filename);
        }
        /* DK ?? 
@@ -468,7 +468,7 @@ ssh_gssapi_storecreds()
        if (strncmp(p, "FILE:", 5) == 0) {
            p += 5;
        }
-       if (access(p, R_OK)) {
+       if (access(p, R_OK) == 0) {
            gssapi_cred_store.filename = strdup(p);
        }
        gss_release_buffer(&min_stat, &export_cred);
This page took 0.101715 seconds and 5 git commands to generate.