diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-06-13 10:19:59 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-06-13 10:19:59 +0000 |
| commit | c23fb8a4d390a8e45a3bea702cc9b995be96c853 (patch) | |
| tree | ae02d3f6129ef7a657063d818eb1e72bf9f3234c /lib/libfetch | |
| parent | de5f056a10b45bfa92fb8a1ae8f9fffc217b7269 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch')
| -rw-r--r-- | lib/libfetch/ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index cd8ff0d94b80..61165936264f 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -294,6 +294,8 @@ _ftp_cwd(conn_t *conn, const char *file) } } for (beg = file + i; beg < end; beg = file + i + 1) { + while (*beg == '/') + ++beg, ++i; for (++i; file + i < end && file[i] != '/'; ++i) /* nothing */ ; e = _ftp_cmd(conn, "CWD %.*s", file + i - beg, beg); |
