1
diff -Naurp vsftpd-2.2.0.orig/features.c vsftpd-2.2.0/features.c
2
--- vsftpd-2.2.0.orig/features.c 2008-12-04 01:00:47.000000000 -0500
3
+++ vsftpd-2.2.0/features.c 2009-08-11 09:36:10.000000000 -0400
4
@@ -21,6 +21,10 @@ handle_feat(struct vsf_session* p_sess)
5
vsf_cmdio_write_raw(p_sess, " AUTH SSL\r\n");
6
vsf_cmdio_write_raw(p_sess, " AUTH TLS\r\n");
8
+ if (tunable_utf8_filesystem)
10
+ vsf_cmdio_write_raw(p_sess, " UTF8\r\n");
12
if (tunable_port_enable)
14
vsf_cmdio_write_raw(p_sess, " EPRT\r\n");
15
diff -Naurp vsftpd-2.2.0.orig/parseconf.c vsftpd-2.2.0/parseconf.c
16
--- vsftpd-2.2.0.orig/parseconf.c 2009-07-18 01:56:02.000000000 -0400
17
+++ vsftpd-2.2.0/parseconf.c 2009-08-11 09:36:10.000000000 -0400
18
@@ -28,6 +28,7 @@ static struct parseconf_bool_setting
19
parseconf_bool_array[] =
21
{ "anonymous_enable", &tunable_anonymous_enable },
22
+ { "utf8_filesystem", &tunable_utf8_filesystem },
23
{ "local_enable", &tunable_local_enable },
24
{ "pasv_enable", &tunable_pasv_enable },
25
{ "port_enable", &tunable_port_enable },
26
diff -Naurp vsftpd-2.2.0.orig/tunables.c vsftpd-2.2.0/tunables.c
27
--- vsftpd-2.2.0.orig/tunables.c 2009-07-15 16:08:27.000000000 -0400
28
+++ vsftpd-2.2.0/tunables.c 2009-08-11 09:36:10.000000000 -0400
31
int tunable_anonymous_enable;
32
int tunable_local_enable;
33
+int tunable_utf8_filesystem;
34
int tunable_pasv_enable;
35
int tunable_port_enable;
36
int tunable_chroot_local_user;
37
@@ -146,6 +147,7 @@ tunables_load_defaults()
39
tunable_anonymous_enable = 1;
40
tunable_local_enable = 0;
41
+ tunable_utf8_filesystem = 0;
42
tunable_pasv_enable = 1;
43
tunable_port_enable = 1;
44
tunable_chroot_local_user = 0;
45
diff -Naurp vsftpd-2.2.0.orig/tunables.h vsftpd-2.2.0/tunables.h
46
--- vsftpd-2.2.0.orig/tunables.h 2009-07-06 21:37:28.000000000 -0400
47
+++ vsftpd-2.2.0/tunables.h 2009-08-11 09:36:10.000000000 -0400
48
@@ -11,6 +11,7 @@ void tunables_load_defaults();
50
extern int tunable_anonymous_enable; /* Allow anon logins */
51
extern int tunable_local_enable; /* Allow local logins */
52
+extern int tunable_utf8_filesystem; /* Server uses UTF8 Filesystem */
53
extern int tunable_pasv_enable; /* Allow PASV */
54
extern int tunable_port_enable; /* Allow PORT */
55
extern int tunable_chroot_local_user; /* Restrict local to home dir */