diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-20 02:03:56 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-07-20 02:03:56 +0000 |
| commit | 5e3f46b51a03445218092a3bbd07b608382f26ac (patch) | |
| tree | 77055c30786d0112221bf8b66e02cc46f5857c3d /lib/libfetch/ftp.c | |
| parent | b31edf0c1bddc284d01e0e71976362d996900cbd (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); |
