Commit 7c4d12ee authored by Marian Durkovic's avatar Marian Durkovic

FTP URLs are relative to user's default directory (RFC1738)

For absolute path use ftp://foo.bar//usr/local/etc/filename
-This line, and those below, will be ignored--

M    modules/access/ftp.c
parent 773b8f68
...@@ -238,6 +238,12 @@ static int Open( vlc_object_t *p_this ) ...@@ -238,6 +238,12 @@ static int Open( vlc_object_t *p_this )
p_sys->url.i_port = 21; /* default port */ p_sys->url.i_port = 21; /* default port */
} }
/* FTP URLs are relative to user's default directory (RFC1738)
For absolute path use ftp://foo.bar//usr/local/etc/filename */
if( *p_sys->url.psz_path == '/' )
p_sys->url.psz_path++;
if( Connect( p_access, p_sys ) < 0 ) if( Connect( p_access, p_sys ) < 0 )
goto exit_error; goto exit_error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment