File: 0004-Disable-FTP-server-of-rclone.patch

package info (click to toggle)
rclone 1.60.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 34,820 kB
  • sloc: sh: 957; xml: 857; python: 655; javascript: 612; makefile: 264; ansic: 101; php: 74
file content (51 lines) | stat: -rw-r--r-- 1,380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Tue, 4 Dec 2018 22:53:21 +0100
Subject: Disable FTP server of rclone

---
 cmd/serve/ftp/ftp.go             | 4 ++--
 cmd/serve/ftp/ftp_test.go        | 4 ++--
 cmd/serve/ftp/ftp_unsupported.go | 3 ---
 3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/cmd/serve/ftp/ftp.go b/cmd/serve/ftp/ftp.go
index 2023ba8..e320bf9 100644
--- a/cmd/serve/ftp/ftp.go
+++ b/cmd/serve/ftp/ftp.go
@@ -1,5 +1,5 @@
-//go:build !plan9
-// +build !plan9
+//go:build ignore
+// +build ignore
 
 // Package ftp implements an FTP server for rclone
 package ftp
diff --git a/cmd/serve/ftp/ftp_test.go b/cmd/serve/ftp/ftp_test.go
index 6ac0d34..f722b47 100644
--- a/cmd/serve/ftp/ftp_test.go
+++ b/cmd/serve/ftp/ftp_test.go
@@ -3,8 +3,8 @@
 //
 // We skip tests on platforms with troublesome character mappings
 
-//go:build !windows && !darwin && !plan9
-// +build !windows,!darwin,!plan9
+//go:build ignore
+// +build ignore
 
 package ftp
 
diff --git a/cmd/serve/ftp/ftp_unsupported.go b/cmd/serve/ftp/ftp_unsupported.go
index 05ad78a..60ece32 100644
--- a/cmd/serve/ftp/ftp_unsupported.go
+++ b/cmd/serve/ftp/ftp_unsupported.go
@@ -1,9 +1,6 @@
 // Build  for unsupported platforms to stop go complaining
 // about "no buildable Go source files "
 
-//go:build plan9
-// +build plan9
-
 package ftp
 
 import "github.com/spf13/cobra"