aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-08-28 16:28:33 +0000
committerRoy Marples <roy@marples.name>2007-08-28 16:28:33 +0000
commitd3bd76486adfcace8153f53fe192a393ded64d0a (patch)
tree2ce3192e5c7081465639df2cbb1b8a581f458a30 /src/librc-misc.c
parentf7583144f378b90d264da8c7fdd8245798944053 (diff)
More path fixes thanks to Thomas Pani
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r--src/librc-misc.c7
1 files changed, 3 insertions, 4 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)) {