Fix execing a for argument list too long
This commit is contained in:
parent
c2aa772687
commit
7cf049cb35
@ -434,14 +434,14 @@ static bool svc_exec (const char *arg1, const char *arg2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (exists (RC_SVCDIR "/runscript.sh")) {
|
if (exists (RC_SVCDIR "/runscript.sh")) {
|
||||||
execl (RC_SVCDIR "/runscript.sh", service, service, arg1, arg2,
|
execl (RC_SVCDIR "/runscript.sh", RC_SVCDIR "/runscript.sh",
|
||||||
(char *) NULL);
|
service, arg1, arg2, (char *) NULL);
|
||||||
eerror ("%s: exec `" RC_SVCDIR "/runscript.sh': %s",
|
eerror ("%s: exec `" RC_SVCDIR "/runscript.sh': %s",
|
||||||
service, strerror (errno));
|
service, strerror (errno));
|
||||||
_exit (EXIT_FAILURE);
|
_exit (EXIT_FAILURE);
|
||||||
} else {
|
} else {
|
||||||
execl (RC_LIBDIR "/sh/runscript.sh", service, service, arg1, arg2,
|
execl (RC_LIBDIR "/sh/runscript.sh", RC_LIBDIR "/sh/runscript.sh",
|
||||||
(char *) NULL);
|
service, arg1, arg2, (char *) NULL);
|
||||||
eerror ("%s: exec `" RC_LIBDIR "/sh/runscript.sh': %s",
|
eerror ("%s: exec `" RC_LIBDIR "/sh/runscript.sh': %s",
|
||||||
service, strerror (errno));
|
service, strerror (errno));
|
||||||
_exit (EXIT_FAILURE);
|
_exit (EXIT_FAILURE);
|
||||||
|
Loading…
Reference in New Issue
Block a user