mirror of https://github.com/aria2/aria2
Use execlp() instead of execl()
parent
df52a3a955
commit
f6c7aaa1cd
|
@ -1514,7 +1514,7 @@ void executeHook
|
|||
if(cpid == -1) {
|
||||
A2_LOG_ERROR("fork() failed. Cannot execute user command.");
|
||||
} else if(cpid == 0) {
|
||||
execl(command.c_str(),
|
||||
execlp(command.c_str(),
|
||||
command.c_str(),
|
||||
gidStr.c_str(),
|
||||
numFilesStr.c_str(),
|
||||
|
|
Loading…
Reference in New Issue