diff options
Diffstat (limited to 'src/rc-status.c')
| -rw-r--r-- | src/rc-status.c | 6 | 
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);  | 
