Retain behavior where rc-update del foo deletes foo from all runlevels.
				
					
				
			This commit is contained in:
		@@ -215,11 +215,8 @@ int rc_update (int argc, char **argv)
 | 
			
		||||
			eerror ("%s: service `%s' does not exist", applet, service);
 | 
			
		||||
		else {
 | 
			
		||||
			retval = EXIT_SUCCESS;
 | 
			
		||||
			if (! runlevels) {
 | 
			
		||||
				runlevel = rc_get_runlevel ();
 | 
			
		||||
				rc_strlist_add (&runlevels, runlevel);
 | 
			
		||||
				free (runlevel);
 | 
			
		||||
			}
 | 
			
		||||
			if (! runlevels)
 | 
			
		||||
				runlevels = rc_get_runlevels ();
 | 
			
		||||
			STRLIST_FOREACH (runlevels, runlevel, i) {
 | 
			
		||||
				if (action & DOADD) {
 | 
			
		||||
					if (! add (runlevel, service))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user