X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=cmds.c;fp=cmds.c;h=5bc5bc2e2d6e1475f605ecee6445e4ae84b2d027;hb=d0ddb9f01ad498b50fbd2ce4d265936a632184d3;hp=9d19d7219a2f777899a794d8d50d69457f1294f1;hpb=14493d6b359df9a7c46fcafdd4208b0987bbba29;p=betaftpd diff --git a/cmds.c b/cmds.c index 9d19d72..5bc5bc2 100644 --- a/cmds.c +++ b/cmds.c @@ -329,7 +329,7 @@ int cmd_pass(struct conn * const c) ) { c->auth = 0; } else { - c->auth = 3; + c->auth = 4; } } #endif /* !WANT_NONROOT */ @@ -345,6 +345,7 @@ int cmd_pass(struct conn * const c) chdir(c->curr_dir); dump_file(c, 230, "welcome.msg"); #endif + /* Have a different message for anonymous users? */ numeric(c, 230, "User logged in."); } return 1; @@ -908,7 +909,7 @@ char conn_state[5][27] = { "Waiting for e-mail address", "Waiting for password", "Logged in", - "Waiting for password", /* actually non-existant user */ + "Logged in", /* non-anonymous */ }; char ftran_state[6][42] = {