summaryrefslogtreecommitdiff
path: root/netkit-ftp-0.17-C-Frame121.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:06:58 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:06:58 +0000
commitac180a0ccc7b9d6d1a7e2c0ba34a0e617fb87b2a (patch)
tree9de49e1f2fc574f4e68e0c5eb903cb537c8c2695 /netkit-ftp-0.17-C-Frame121.patch
parent72d830c7e64b038eb96c0f36e0c1a0ab225238e3 (diff)
automatic import of ftpopeneuler24.03_LTS
Diffstat (limited to 'netkit-ftp-0.17-C-Frame121.patch')
-rw-r--r--netkit-ftp-0.17-C-Frame121.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/netkit-ftp-0.17-C-Frame121.patch b/netkit-ftp-0.17-C-Frame121.patch
new file mode 100644
index 0000000..f687d16
--- /dev/null
+++ b/netkit-ftp-0.17-C-Frame121.patch
@@ -0,0 +1,25 @@
+--- netkit-ftp-0.17/ftp/ftp.c.rasold 2005-10-26 16:56:09.000000000 +0200
++++ netkit-ftp-0.17/ftp/ftp.c 2005-10-26 16:56:46.000000000 +0200
+@@ -1253,14 +1253,14 @@
+ switch (data_addr.su_family) {
+ case AF_INET:
+ #if 0
+- if (try_epsv) {
+- result = command(pasvcmd = "EPSV 1");
+- if (code / 10 == 22 && code != 229) {
+- fprintf(stderr,
+- "wrong server: return code must be 229\n");
+- result = COMPLETE + 1;
+- }
+- } else {
++/*@*/ if (try_epsv) {
++/*@*/ result = command(pasvcmd = "EPSV 1");
++/*@*/ if (code / 10 == 22 && code != 229) {
++/*@*/ fprintf(stderr,
++/*@*/ "wrong server: return code must be 229\n");
++/*@*/ result = COMPLETE + 1;
++/*@*/ }
++/*@*/ } else {
+ #endif
+ result = COMPLETE + 1;
+