aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-22 12:09:46 +0000
committerRoy Marples <roy@marples.name>2007-11-22 12:09:46 +0000
commit7cf049cb35b03ff3d4e3da6b863c0d17ad3496db (patch)
tree44ba7edf3e97803272796ba8d1365f97d54650de
parentc2aa772687ec20acfe1e31dd2e39cf41d271613f (diff)
Fix execing a for argument list too long
-rw-r--r--src/runscript.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runscript.c b/src/runscript.c
index 6ff25eb6..6431a784 100644
--- a/src/runscript.c
+++ b/src/runscript.c
@@ -434,14 +434,14 @@ static bool svc_exec (const char *arg1, const char *arg2)
}
if (exists (RC_SVCDIR "/runscript.sh")) {
- execl (RC_SVCDIR "/runscript.sh", service, service, arg1, arg2,
- (char *) NULL);
+ execl (RC_SVCDIR "/runscript.sh", RC_SVCDIR "/runscript.sh",
+ service, arg1, arg2, (char *) NULL);
eerror ("%s: exec `" RC_SVCDIR "/runscript.sh': %s",
service, strerror (errno));
_exit (EXIT_FAILURE);
} else {
- execl (RC_LIBDIR "/sh/runscript.sh", service, service, arg1, arg2,
- (char *) NULL);
+ execl (RC_LIBDIR "/sh/runscript.sh", RC_LIBDIR "/sh/runscript.sh",
+ service, arg1, arg2, (char *) NULL);
eerror ("%s: exec `" RC_LIBDIR "/sh/runscript.sh': %s",
service, strerror (errno));
_exit (EXIT_FAILURE);