aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-15 16:17:33 +0000
committerRoy Marples <roy@marples.name>2007-10-15 16:17:33 +0000
commit068b4798c2af45260a1720158ba647fbab2e94e0 (patch)
tree6bc1f4b49391307a2059337497502dd22c3f1f30 /src
parenta6ae4a6cde87984313211a508b6ef540d6990b66 (diff)
Update dependencies if we're allowed too
Diffstat (limited to 'src')
-rw-r--r--src/rc-status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index 324177c9..c72c7bdc 100644
--- a/src/rc-status.c
+++ b/src/rc-status.c
@@ -141,7 +141,11 @@ int rc_status (int argc, char **argv)
}
/* Output the services in the order in which they would start */
- deptree = rc_deptree_load ();
+ if (geteuid () == 0)
+ deptree = _rc_deptree_load ();
+ else
+ deptree = rc_deptree_load ();
+
STRLIST_FOREACH (levels, level, i) {
print_level (level);
services = rc_services_in_runlevel (level);