busybox-1.32.0/selinux/setfiles.c
static bool only_changed_user(const char *a, const char *b)
{
	if (FLAG_F_force)
		return 0;
	if (!a || !b)
		return 0;
	a = strchr(a, ':'); /* Rest of the context after the user */
	b = strchr(b, ':');
	if (!a || !b)
		return 0;
	return (strcmp(a, b) == 0);
}
/* Compare two contexts to see if their differences are "significant",
 * or whether the only difference is in the user. */
Compare two contexts to see if their differences are "significant",
or whether the only difference is in the user.
Compare two contexts to see if their differences are " significant " or whether the only difference is in the user .
static bool only_changed_user(const char *a, const char *b)
{
	if (FLAG_F_force)
		return 0;
	if (!a || !b)
		return 0;
	a = strchr(a, ':'); 
	b = strchr(b, ':');
	if (!a || !b)
		return 0;
	return (strcmp(a, b) == 0);
}
static bool only_changed_user ( const char * a , const char * b ) { if ( FLAG_F_force ) return 0 ; if ( ! a || ! b ) return 0 ; a = strchr ( a , ' ' ) ; b = strchr ( b , ' ' ) ; if ( ! a || ! b ) return 0 ; return ( strcmp ( a , b ) == 0 ) ; }
Compare two contexts to see if their differences are "significant",
 or whether the only difference is in the user.
Compare two contexts to see if their differences are " significant " or whether the only difference is in the user .
/* Rest of the context after the user */