Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
816c579c
Commit
816c579c
authored
Jul 17, 2013
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ftp: warning about pure-ftp server used as and output
parent
2217243e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ftp.c
libavformat/ftp.c
+7
-2
No files found.
libavformat/ftp.c
View file @
816c579c
...
@@ -382,7 +382,7 @@ static int ftp_restart(FTPContext *s, int64_t pos)
...
@@ -382,7 +382,7 @@ static int ftp_restart(FTPContext *s, int64_t pos)
static
int
ftp_connect_control_connection
(
URLContext
*
h
)
static
int
ftp_connect_control_connection
(
URLContext
*
h
)
{
{
char
buf
[
CONTROL_BUFFER_SIZE
],
opts_format
[
20
];
char
buf
[
CONTROL_BUFFER_SIZE
],
opts_format
[
20
]
,
*
response
=
NULL
;
int
err
;
int
err
;
AVDictionary
*
opts
=
NULL
;
AVDictionary
*
opts
=
NULL
;
FTPContext
*
s
=
h
->
priv_data
;
FTPContext
*
s
=
h
->
priv_data
;
...
@@ -404,11 +404,16 @@ static int ftp_connect_control_connection(URLContext *h)
...
@@ -404,11 +404,16 @@ static int ftp_connect_control_connection(URLContext *h)
}
}
/* check if server is ready */
/* check if server is ready */
if
(
ftp_status
(
s
,
NULL
,
connect_codes
)
!=
220
)
{
if
(
ftp_status
(
s
,
((
h
->
flags
&
AVIO_FLAG_WRITE
)
?
&
response
:
NULL
)
,
connect_codes
)
!=
220
)
{
av_log
(
h
,
AV_LOG_ERROR
,
"FTP server not ready for new users
\n
"
);
av_log
(
h
,
AV_LOG_ERROR
,
"FTP server not ready for new users
\n
"
);
return
AVERROR
(
EACCES
);
return
AVERROR
(
EACCES
);
}
}
if
((
h
->
flags
&
AVIO_FLAG_WRITE
)
&&
av_stristr
(
response
,
"pure-ftpd"
))
{
av_log
(
h
,
AV_LOG_WARNING
,
"Pure-FTPd server is used as an output protocol. It is known issue this implementation may produce incorrect content and it cannot be fixed at this moment."
);
}
av_free
(
response
);
if
((
err
=
ftp_auth
(
s
))
<
0
)
{
if
((
err
=
ftp_auth
(
s
))
<
0
)
{
av_log
(
h
,
AV_LOG_ERROR
,
"FTP authentication failed
\n
"
);
av_log
(
h
,
AV_LOG_ERROR
,
"FTP authentication failed
\n
"
);
return
err
;
return
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment