From f294ad59b7c72e8be2e17d8655c352ebc6097758 Mon Sep 17 00:00:00 2001 From: jwd Date: Sat, 12 Oct 2002 04:13:17 +0000 Subject: 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 --- ftp/spegla/files/patch-ba | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ftp/spegla/files/patch-ba (limited to 'ftp/spegla/files') 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); -- cgit