Fri Aug 7 22:39:47 1998 Matthew D Hancher <mdh@mit.edu>
authorMatthew Hancher <mdh@mit.edu>
Sat, 8 Aug 1998 02:41:31 +0000 (02:41 +0000)
committerMatthew Hancher <mdh@mit.edu>
Sat, 8 Aug 1998 02:41:31 +0000 (02:41 +0000)
* ftp.c (do_auth): Make verbosity not disappear if GSSAPI fails.
(getreply): Move 'S:' and 'P:' from verbose to debug.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10790 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ftp.c

index 85e01b5dddc7c2be06c4659ca731b66cbe38ecd2..66f1a1f26f8b20bb48ac94ff2664fc040f1afac9 100644 (file)
@@ -638,7 +638,7 @@ getreply(expecteof)
                                        krb_get_err_text(kerror));
                                  n = '5';
                                } else {
-                                 if (verbose) printf("%c:", safe ? 'S' : 'P');
+                                 if (debug) printf("%c:", safe ? 'S' : 'P');
                                  memcpy(ibuf, msg_data.app_data,
                                        msg_data.app_length);
                                  strcpy(&ibuf[msg_data.app_length], "\r\n");
@@ -1839,7 +1839,7 @@ char* gss_services[] = { "ftp", "host", 0 };
 do_auth()
 {
        extern int setsafe();
-       int oldverbose;
+       int oldverbose = verbose;
 #ifdef KRB5_KRB4_COMPAT
        char *service, inst[INST_SZ];
        u_long cksum, checksum = (u_long) getpid();