diff options
author | jwd <jwd@FreeBSD.org> | 2002-10-12 12:13:17 +0800 |
---|---|---|
committer | jwd <jwd@FreeBSD.org> | 2002-10-12 12:13:17 +0800 |
commit | f294ad59b7c72e8be2e17d8655c352ebc6097758 (patch) | |
tree | 24489df65a5760c14162118cb96a2970d6daca01 | |
parent | 5c28451e3f6c8c2c513366b3c922f4389e1e2564 (diff) | |
download | freebsd-ports-graphics-f294ad59b7c72e8be2e17d8655c352ebc6097758.tar.gz freebsd-ports-graphics-f294ad59b7c72e8be2e17d8655c352ebc6097758.tar.zst freebsd-ports-graphics-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
-rw-r--r-- | ftp/spegla/files/patch-ba | 11 |
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 00000000000..b5ea070a5e8 --- /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); |