summaryrefslogtreecommitdiff
path: root/opts.c
diff options
context:
space:
mode:
authorbeatrice <beatrice@dangofactory.net>2026-11-22 19:25:05 +0900
committerbeatrice <beatrice@dangofactory.net>2026-11-22 19:25:05 +0900
commitc7a201b58080c7a0f57b38c59e7865aa42c1d029 (patch)
treecde6146e3aada31e68594fd4f034abe90621ce34 /opts.c
downloadvsftpd-master.tar.gz
vsftpd-master.zip
Import vsftpd-3.0.5.tar.gzHEADlocal/vsftpdmaster
Diffstat (limited to 'opts.c')
-rw-r--r--opts.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/opts.c b/opts.c
new file mode 100644
index 0000000..ae4ceba
--- /dev/null
+++ b/opts.c
@@ -0,0 +1,27 @@
+/*
+ * Part of Very Secure FTPd
+ * Licence: GPL v2
+ * Author: Chris Evans
+ * opts.c
+ *
+ * Routines to handle OPTS.
+ */
+
+#include "ftpcodes.h"
+#include "ftpcmdio.h"
+#include "session.h"
+
+void
+handle_opts(struct vsf_session* p_sess)
+{
+ str_upper(&p_sess->ftp_arg_str);
+ if (str_equal_text(&p_sess->ftp_arg_str, "UTF8 ON"))
+ {
+ vsf_cmdio_write(p_sess, FTP_OPTSOK, "Always in UTF8 mode.");
+ }
+ else
+ {
+ vsf_cmdio_write(p_sess, FTP_BADOPTS, "Option not understood.");
+ }
+}
+