diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-20 02:05:26 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-20 02:05:26 +0000 |
| commit | 83cab6e19f71620360a4a647e758248c26bde462 (patch) | |
| tree | deeda991d53f5df3f3104a17134b6d1651580f39 /lib/libfetch/ftp.c | |
| parent | 42aab7dff35501889563220addfd2e350b095a79 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
| -rw-r--r-- | lib/libfetch/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 6fb16b2d7378..05f429bd9119 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -217,7 +217,7 @@ _ftp_cwd(int cd, char *file) char *s; int e; - if ((s = strrchr(file, '/')) == NULL) { + if ((s = strrchr(file, '/')) == NULL || s == file) { e = _ftp_cmd(cd, "CWD /"); } else { e = _ftp_cmd(cd, "CWD %.*s", s - file, file); |
