mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-24 07:46:20 +00:00
Fixed: Wrong parameters passed to bash script
This commit is contained in:
parent
597332f362
commit
e4ba5c6469
1 changed files with 2 additions and 2 deletions
|
@ -986,7 +986,7 @@ void CPatchManager::executeBatchFile()
|
||||||
chmod(strCmdLine.c_str(), S_IRWXU);
|
chmod(strCmdLine.c_str(), S_IRWXU);
|
||||||
if (r2Mode)
|
if (r2Mode)
|
||||||
{
|
{
|
||||||
if (execl(strCmdLine.c_str(), LoginLogin.c_str(), LoginPassword.c_str()) == -1)
|
if (execl(strCmdLine.c_str(), strCmdLine.c_str(), LoginLogin.c_str(), LoginPassword.c_str(), (char *) NULL) == -1)
|
||||||
{
|
{
|
||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
nlerror("Execl Error: %d %s", errsv, strCmdLine.c_str(), (char *) NULL);
|
nlerror("Execl Error: %d %s", errsv, strCmdLine.c_str(), (char *) NULL);
|
||||||
|
@ -998,7 +998,7 @@ void CPatchManager::executeBatchFile()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (execl(strCmdLine.c_str(), LoginLogin.c_str(), LoginPassword.c_str(), LoginShardId, (char *) NULL) == -1)
|
if (execl(strCmdLine.c_str(), strCmdLine.c_str(), LoginLogin.c_str(), LoginPassword.c_str(), toString(LoginShardId).c_str(), (char *) NULL) == -1)
|
||||||
{
|
{
|
||||||
int errsv = errno;
|
int errsv = errno;
|
||||||
nlerror("Execl r2mode Error: %d %s", errsv, strCmdLine.c_str());
|
nlerror("Execl r2mode Error: %d %s", errsv, strCmdLine.c_str());
|
||||||
|
|
Loading…
Reference in a new issue