From 068b4798c2af45260a1720158ba647fbab2e94e0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 15 Oct 2007 16:17:33 +0000 Subject: [PATCH] Update dependencies if we're allowed too --- src/rc-status.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);