"oldclevel". Also, replace all occurrences of "dlevel" in this
function with "clevel".
* ftp.c (login): Test whether or not the server actually requires
"PASS dummy" by first sending "PWD" and checking the return value.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10898
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Aug 28 18:46:35 1998 Geoffrey King <gjking@mit.edu>
+
+ * cmds.c (user): Replace "oldlevel" with the more descriptive
+ "oldclevel". Also, replace all occurrences of "dlevel" in this
+ function with "clevel".
+
+ * ftp.c (login): Test whether or not the server actually requires
+ "PASS dummy" by first sending "PWD" and checking the return value.
+
Wed Aug 12 02:26:26 1998 Geoffrey King <gjking@mit.edu>
* ftp.c, cmds.c, cmdtab.c, main.c, secure.c, ftp_var.h: Replace
n = command("PASS dummy");
else if (n == CONTINUE) {
#ifndef NOENCRYPTION
- int oldlevel;
+ int oldclevel;
#endif
- if (argc < 3 )
+ if (argc < 3)
argv[2] = mygetpass("Password: "), argc++;
#ifndef NOENCRYPTION
- if ((oldlevel = dlevel) == PROT_S) dlevel = PROT_P;
+ if ((oldclevel = clevel) == PROT_S) clevel = PROT_P;
#endif
n = command("PASS %s", argv[2]);
#ifndef NOENCRYPTION
/* level may have changed */
- if (dlevel == PROT_P) dlevel = oldlevel;
+ if (clevel == PROT_P) clevel = oldclevel;
#endif
}
if (n == CONTINUE) {
user = tmp;
}
n = command("USER %s", user);
- if (n == COMPLETE)
- n = command("PASS dummy");
+ if (n == COMPLETE) {
+ /* determine if we need to send a dummy password */
+ int oldverbose = verbose;
+
+ verbose = 0;
+ if (command("PWD") != COMPLETE) {
+ verbose = oldverbose;
+ command("PASS dummy");
+ } else {
+ verbose = oldverbose;
+ }
+ }
else if (n == CONTINUE) {
#ifndef NOENCRYPTION
int oldclevel;