File: 0025-unconditional_utf8_report.patch

package info (click to toggle)
vsftpd 3.0.3-13
  • links: PTS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 2,628 kB
  • sloc: ansic: 16,636; sh: 267; makefile: 51; python: 18
file content (22 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: remove unconditional utf-8 report
Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754449
Last-Update: 2014-08-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/features.c
===================================================================
--- trunk.orig/features.c
+++ trunk/features.c
@@ -48,7 +48,9 @@ handle_feat(struct vsf_session* p_sess)
   vsf_cmdio_write_raw(p_sess, " REST STREAM\r\n");
   vsf_cmdio_write_raw(p_sess, " SIZE\r\n");
   vsf_cmdio_write_raw(p_sess, " TVFS\r\n");
-  vsf_cmdio_write_raw(p_sess, " UTF8\r\n");
+  if (tunable_utf8_filesystem)
+  {
+    vsf_cmdio_write_raw(p_sess, " UTF8\r\n");
+  }
   vsf_cmdio_write(p_sess, FTP_FEAT, "End");
 }
-