summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-05-01 08:19:07 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-05-01 08:19:07 -0700
commitbd23eb51319dd2e7164f8a93593c75dbc0300748 (patch)
treeb45db6c38f5f6c321a3ff97cf13ca6b59f87e68a /lib
parent89b6784a649b4f111da3c04c358fa8952fd101aa (diff)
Set active levels after parsing from scripts
After parsing the init.d directory with initd_list_from_dir, we call initd_list_set_actives so it doesn't need to be explicitly called.
Diffstat (limited to 'lib')
-rw-r--r--lib/initd-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/initd-list.c b/lib/initd-list.c
index 17eddc4..4ddfd7a 100644
--- a/lib/initd-list.c
+++ b/lib/initd-list.c
@@ -135,6 +135,9 @@ initd_list_t *initd_list_from_dir(const char *dir)
if (closedir(dfd) != 0)
error(2, errno, "%s", dir);
+
+ /* Set the active field for all scripts */
+ initd_list_set_actives(ilp, dir);
out:
return ilp;
}