freebsd-ports/ftp/spegla/files/patch-ba
John W. De Boskey ba6b2857d7 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
2002-10-12 04:13:17 +00:00

12 lines
373 B
Plaintext

--- 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);