summaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorJohn W. De Boskey <jwd@FreeBSD.org>2002-10-12 04:13:17 +0000
committerJohn W. De Boskey <jwd@FreeBSD.org>2002-10-12 04:13:17 +0000
commitba6b2857d77608e538ed6224c3fce826aeaf4604 (patch)
tree3118e2aee924506b29076249e4b841c3fea02f72 /ftp
parentMake esound support optional. (diff)
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
Notes
Notes: svn path=/head/; revision=67842
Diffstat (limited to 'ftp')
-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);