Index: openssh/ssh-add.c =================================================================== RCS file: /home/ncvs/src/crypto/openssh/ssh-add.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 ssh-add.c --- openssh/ssh-add.c 2000/05/17 06:01:11 1.1.1.2 +++ openssh/ssh-add.c 2000/07/25 09:37:25 @@ -70,6 +70,7 @@ fatal("ssh_askpass: dup2: %s", strerror(errno)); execlp(askpass, askpass, msg, (char *) 0); fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); + fprintf(stderr, "Continuing after \"fatal\"\n"); } close(p[1]); len = read(p[0], buf, sizeof buf); @@ -79,6 +80,7 @@ break; if (len <= 1) return xstrdup(""); + fprintf(stderr, "Read %d bytes of passphrase\n", len); nl = strchr(buf, '\n'); if (nl) *nl = '\0'; @@ -115,7 +117,7 @@ private = key_new(KEY_RSA); success = load_private_key(filename, "", private, &comment); if (!success) { - printf("Need passphrase for %.200s\n", filename); + printf("TEST: Need passphrase for %.200s\n", filename); if (!interactive && askpass == NULL) { xfree(saved_comment); return; @@ -129,6 +131,8 @@ } else { pass = ssh_askpass(askpass, msg); } + fprintf(stderr, "Interactive: %d, Repeating from passphrase \"%s\", strcmp(pass, \"\") == %d\n", interactive, + pass, strcmp(pass, "")); if (strcmp(pass, "") == 0) { xfree(pass); xfree(saved_comment);