1 /*
2  * h_host.c
3  * (C)1999-2011 by Marc Huber <Marc.Huber@web.de>
4  *
5  * $Id: h_host.c,v 1.11 2015/03/14 06:11:25 marc Exp marc $
6  *
7  */
8 
9 /*
10  * The HOST command was specified until draft-ietf-ftpext-mlst-08.txt,
11  * but has been removed from later versions of the draft. It may be
12  * specified in its own draft sometime.
13  *
14  */
15 
16 #include "headers.h"
17 
18 static const char rcsid[] __attribute__ ((used)) = "$Id: h_host.c,v 1.11 2015/03/14 06:11:25 marc Exp marc $";
19 
h_host(struct context * ctx,char * arg)20 void h_host(struct context *ctx, char *arg)
21 {
22     Debug((DEBUG_COMMAND, "+ %s %s\n", __func__, arg));
23 
24     if (ctx->state != ST_conn)
25 	reply(ctx, MSG_503_Already_logged_in);
26     else {
27 	strset(&ctx->vhost, arg);
28 	reply(ctx, MSG_220_Virtual_host_set);
29     }
30 
31     DebugOut(DEBUG_COMMAND);
32 }
33