More path fixes thanks to Thomas Pani
This commit is contained in:
parent
f7583144f3
commit
d3bd76486a
@ -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)) {
|
||||
|
4
src/rc.c
4
src/rc.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user