mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
changed execv to execvp to enable file search
This commit is contained in:
@ -382,7 +382,7 @@ ngx_rtmp_exec_run(ngx_rtmp_session_t *s, size_t n)
|
||||
args[n + 1] = ngx_rtmp_exec_prepare_arg(s, arg);
|
||||
}
|
||||
args[n + 1] = NULL;
|
||||
if (execv((char *)ec->cmd.data, args) == -1) {
|
||||
if (execvp((char *)ec->cmd.data, args) == -1) {
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user