aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/spegla
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2002-10-12 12:13:17 +0800
committerjwd <jwd@FreeBSD.org>2002-10-12 12:13:17 +0800
commitf294ad59b7c72e8be2e17d8655c352ebc6097758 (patch)
tree24489df65a5760c14162118cb96a2970d6daca01 /ftp/spegla
parent5c28451e3f6c8c2c513366b3c922f4389e1e2564 (diff)
downloadfreebsd-ports-gnome-f294ad59b7c72e8be2e17d8655c352ebc6097758.tar.gz
freebsd-ports-gnome-f294ad59b7c72e8be2e17d8655c352ebc6097758.tar.zst
freebsd-ports-gnome-f294ad59b7c72e8be2e17d8655c352ebc6097758.zip
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 000000000000..b5ea070a5e82
--- /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);