blob: b5ea070a5e82dc9d81b5abb01794f2d9a146a03b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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);
|