aboutsummaryrefslogtreecommitdiff
path: root/src/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-05 11:31:17 +0000
committerRoy Marples <roy@marples.name>2007-10-05 11:31:17 +0000
commit632bd4d1f03cd0d4b6bf397b0768063f6713c12d (patch)
treeb874690278b59d805648cb9f8b844458709130ac /src/rc.c
parent9ff89f8027fa904737f15d59e2c3b26950391933 (diff)
Fix a few errors with the last few commits
Diffstat (limited to 'src/rc.c')
-rw-r--r--src/rc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rc.c b/src/rc.c
index 9472edb5..aa3e4373 100644
--- a/src/rc.c
+++ b/src/rc.c
@@ -1078,7 +1078,7 @@ int main (int argc, char **argv)
rc_service_plugable (d->d_name))
rc_service_mark (d->d_name, RC_SERVICE_COLDPLUGGED);
- tmp = asprintf (&tmp, RC_SVCDIR "/failed/%s", d->d_name);
+ asprintf (&tmp, DEVBOOT "/%s", d->d_name);
if (tmp) {
if (unlink (tmp))
eerror ("%s: unlink `%s': %s", applet, tmp,
@@ -1106,9 +1106,9 @@ int main (int argc, char **argv)
i = (strlen ("net.") + strlen (d->d_name) + 1);
tmp = rc_xmalloc (sizeof (char *) * i);
snprintf (tmp, i, "net.%s", d->d_name);
- if (rc_service_exists (d->d_name) &&
- rc_service_plugable (d->d_name))
- rc_service_mark (d->d_name, RC_SERVICE_COLDPLUGGED);
+ if (rc_service_exists (tmp) &&
+ rc_service_plugable (tmp))
+ rc_service_mark (tmp, RC_SERVICE_COLDPLUGGED);
CHAR_FREE (tmp);
}
closedir (dp);