Update dependencies if we're allowed too

This commit is contained in:
Roy Marples 2007-10-15 16:17:33 +00:00
parent a6ae4a6cde
commit 068b4798c2

View File

@ -141,7 +141,11 @@ int rc_status (int argc, char **argv)
}
/* Output the services in the order in which they would start */
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);