summaryrefslogtreecommitdiffstats
path: root/ftp/spegla
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2002-10-12 04:13:17 +0000
committerjwd <jwd@FreeBSD.org>2002-10-12 04:13:17 +0000
commitf294ad59b7c72e8be2e17d8655c352ebc6097758 (patch)
tree24489df65a5760c14162118cb96a2970d6daca01 /ftp/spegla
parent5c28451e3f6c8c2c513366b3c922f4389e1e2564 (diff)
downloadFreeBSD-ports-f294ad59b7c72e8be2e17d8655c352ebc6097758.zip
FreeBSD-ports-f294ad59b7c72e8be2e17d8655c352ebc6097758.tar.gz
Be a bit more precise creating the list command. This allows
spegla to interoperate with lukemftpd. A patch to lukemftpd will allow prior versions of spegla to work correctly. Found by: The update of releng4
Diffstat (limited to 'ftp/spegla')
-rw-r--r--ftp/spegla/files/patch-ba11
1 files changed, 11 insertions, 0 deletions
diff --git a/ftp/spegla/files/patch-ba b/ftp/spegla/files/patch-ba
new file mode 100644
index 0000000..b5ea070
--- /dev/null
+++ b/ftp/spegla/files/patch-ba
@@ -0,0 +1,11 @@
+--- jftp.c.orig Fri Sep 27 12:46:43 2002
++++ jftp.c Fri Sep 27 12:47:55 2002
+@@ -980,7 +980,7 @@
+ /* Late versions of wu-ftpd does some kind of recursive
+ * listing if only a '.' is given as directory.
+ */
+- if (strcmp(dir, ".") == 0)
++ if ((strcmp(dir, ".") == 0) || !*dir)
+ res = ftp_req(c, "list %s", flags);
+ else
+ res = ftp_req(c, "list %s %s", flags, dir);
OpenPOWER on IntegriCloud