rc: fix inverted string compare logic
X-Gentoo-Bug: 417227 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=417227 Reported-by: sphakka <marcoep@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
		@@ -343,7 +343,7 @@ do_mark_service(int argc, char **argv)
 | 
			
		||||
	if (service == NULL || *service == '\0')
 | 
			
		||||
		eerrorx("%s: no service specified", applet);
 | 
			
		||||
 | 
			
		||||
	if (strncmp(applet, "mark_", 5) &&
 | 
			
		||||
	if (!strncmp(applet, "mark_", 5) &&
 | 
			
		||||
	    (bit = lookup_service_state(applet + 5)))
 | 
			
		||||
		ok = rc_service_mark(service, bit);
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user