1/* 2 * Part of Very Secure FTPd 3 * Licence: GPL v2 4 * Author: Chris Evans 5 * opts.c 6 * 7 * Routines to handle OPTS. 8 */ 9 10#include "ftpcodes.h" 11#include "ftpcmdio.h" 12#include "session.h" 13#include "tunables.h" 14 15void 16handle_opts(struct vsf_session* p_sess) 17{ 18 str_upper(&p_sess->ftp_arg_str); 19 if (str_equal_text(&p_sess->ftp_arg_str, "UTF8 ON") && !strcmp(tunable_remote_charset, "utf8")) 20 { 21 vsf_cmdio_write(p_sess, FTP_OPTSOK, "Always in UTF8 mode."); 22 } 23 else 24 { 25 vsf_cmdio_write(p_sess, FTP_BADOPTS, "Option not understood."); 26 } 27} 28 29