Skip to content

Commit 6b0dddb

Browse files
committed
changed execv to execvp to enable file search
1 parent ed5f06d commit 6b0dddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_rtmp_exec_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ ngx_rtmp_exec_run(ngx_rtmp_session_t *s, size_t n)
382382
args[n + 1] = ngx_rtmp_exec_prepare_arg(s, arg);
383383
}
384384
args[n + 1] = NULL;
385-
if (execv((char *)ec->cmd.data, args) == -1) {
385+
if (execvp((char *)ec->cmd.data, args) == -1) {
386386
exit(1);
387387
}
388388
break;

0 commit comments

Comments
 (0)