verify: Pass the "any" finger parameter to the daemon

fprintd supports "any" finger parameter for the VerifyStart call, and it's
up to the daemon to pick the first known if the device doesn't support
identification.

So remove the check to verify utility and add a test to verify this is
respected.
This commit is contained in:
Marco Trevisan (Treviño)
2020-04-03 02:55:33 +02:00
parent d7ca9e6095
commit f6eb3b3ea5
2 changed files with 18 additions and 4 deletions

View File

@ -108,8 +108,7 @@ static void find_finger(DBusGProxy *dev, const char *username)
exit(1);
}
if (finger_name == NULL || strcmp (finger_name, "any") == 0) {
g_free (finger_name);
if (finger_name == NULL) {
finger_name = g_strdup (fingers[0]);
}