vsftpd 3.0.2
[tomato/tomato-dir865l.git] / release / src / router / vsftpd / opts.c
blobae4ceba98202c54e8fe5b5207d199a6014542035
1 /*
2 * Part of Very Secure FTPd
3 * Licence: GPL v2
4 * Author: Chris Evans
5 * opts.c
7 * Routines to handle OPTS.
8 */
10 #include "ftpcodes.h"
11 #include "ftpcmdio.h"
12 #include "session.h"
14 void
15 handle_opts(struct vsf_session* p_sess)
17 str_upper(&p_sess->ftp_arg_str);
18 if (str_equal_text(&p_sess->ftp_arg_str, "UTF8 ON"))
20 vsf_cmdio_write(p_sess, FTP_OPTSOK, "Always in UTF8 mode.");
22 else
24 vsf_cmdio_write(p_sess, FTP_BADOPTS, "Option not understood.");