mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Avoid clearing storage when we can garbage collect
If the device supports listing prints, then we can do more targeted deletes once the storage runs out. As such, do not try to clear the storage on first enroll (therefore allowing dual boot setups to work to a limited degree).
This commit is contained in:
@ -2001,7 +2001,8 @@ fprint_device_enroll_start (FprintDBusDevice *dbus_dev,
|
||||
priv->enroll_data = finger;
|
||||
priv->current_action = ACTION_ENROLL;
|
||||
|
||||
if (is_first_enrollment (rdev))
|
||||
if (!fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_STORAGE_LIST) &&
|
||||
is_first_enrollment (rdev))
|
||||
{
|
||||
g_autoptr(GError) clear_err = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user