From 068c90c82b07343b5f54fe5ac836fe3efc66f51f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 25 Mar 2008 18:20:23 +0000 Subject: Fix exclusive removal. --- src/rc/rc-applets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rc/rc-applets.c') diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index 539ef39..34ab7b0 100644 --- a/src/rc/rc-applets.c +++ b/src/rc/rc-applets.c @@ -295,10 +295,10 @@ static int do_mark_service(int argc, char **argv) /* Remove the exclusive time test. This ensures that it's not in control as well */ - l = strlen(RC_SVCDIR "exclusive") + strlen(svcname) + + l = strlen(RC_SVCDIR "/exclusive") + strlen(svcname) + strlen(runscript_pid) + 4; mtime = xmalloc(l); - snprintf(mtime, l, RC_SVCDIR "exclusive/%s.%s", + snprintf(mtime, l, RC_SVCDIR "/exclusive/%s.%s", svcname, runscript_pid); if (exists(mtime) && unlink(mtime) != 0) eerror("%s: unlink: %s", applet, strerror(errno)); -- cgit v1.2.3