Searched refs:user_and_machine (Results 1 – 1 of 1) sorted by relevance
1603 static int user_and_machine_valid(const char *user_and_machine) { in user_and_machine_valid() argument1611 h = strchr(user_and_machine, '@'); in user_and_machine_valid()1613 h = user_and_machine; in user_and_machine_valid()1617 user = strndup(user_and_machine, h - user_and_machine); in user_and_machine_valid()1633 static int user_and_machine_equivalent(const char *user_and_machine) { in user_and_machine_equivalent() argument1643 assert(user_and_machine); in user_and_machine_equivalent()1647 if (streq(user_and_machine, "@.host")) in user_and_machine_equivalent()1654 if (uid == 0 && STR_IN_SET(user_and_machine, ".host", "root@.host", "0@.host")) in user_and_machine_equivalent()1661 f = startswith(user_and_machine, buf); in user_and_machine_equivalent()1667 f = startswith(user_and_machine, un); in user_and_machine_equivalent()[all …]