diff options
author | Roy Marples <roy@marples.name> | 2008-03-25 18:20:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-25 18:20:23 +0000 |
commit | 068c90c82b07343b5f54fe5ac836fe3efc66f51f (patch) | |
tree | aebe53e57eb208663eea20c0ae64217fc4c38075 /src | |
parent | 59b27ad7eb40d81225d5adc96d97f7e6250b5b79 (diff) |
Fix exclusive removal.
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/rc-applets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c index 539ef39a..34ab7b0f 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)); |