diff options
author | Roy Marples <roy@marples.name> | 2007-08-28 16:28:33 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-08-28 16:28:33 +0000 |
commit | d3bd76486adfcace8153f53fe192a393ded64d0a (patch) | |
tree | 2ce3192e5c7081465639df2cbb1b8a581f458a30 | |
parent | f7583144f378b90d264da8c7fdd8245798944053 (diff) |
More path fixes thanks to Thomas Pani
-rw-r--r-- | src/librc-misc.c | 7 | ||||
-rw-r--r-- | src/rc.c | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c index 2aee5d43..a138ad02 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -640,10 +640,9 @@ char **rc_config_env (char **env) env = rc_strlist_add (env, line); free (line); - if (rc_exists (RC_SVCDIR "ksoftlevel")) { - if (! (fp = fopen (RC_SVCDIR "ksoftlevel", "r"))) - eerror ("fopen `%s': %s", RC_SVCDIR "ksoftlevel", - strerror (errno)); + if (rc_exists (RC_KSOFTLEVEL)) { + if (! (fp = fopen (RC_KSOFTLEVEL, "r"))) + eerror ("fopen `%s': %s", RC_KSOFTLEVEL, strerror (errno)); else { memset (buffer, 0, sizeof (buffer)); if (fgets (buffer, sizeof (buffer), fp)) { @@ -1016,8 +1016,8 @@ int main (int argc, char **argv) eerrorx ("failed to load deptree"); /* Clean the failed services state dir now */ - if (rc_is_dir (RC_SVCDIR "failed")) - rc_rm_dir (RC_SVCDIR "failed", false); + if (rc_is_dir (RC_SVCDIR "/failed")) + rc_rm_dir (RC_SVCDIR "/failed", false); mkdir (RC_STOPPING, 0755); |