mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
file_storage: Don't return an error if the print doesn't exist
We may just try to remove something isn't there so it's not an actual error from our POV.
This commit is contained in:
committed by
Benjamin Berg
parent
eece834231
commit
c685f0d34c
@ -238,6 +238,9 @@ file_storage_print_data_delete (FpDevice *dev, FpFinger finger, const char *user
|
||||
|
||||
path = get_path_to_print_dscv (dev, finger, base_store);
|
||||
|
||||
if (!g_file_test (path, G_FILE_TEST_EXISTS))
|
||||
return 0;
|
||||
|
||||
r = g_unlink (path);
|
||||
g_debug ("file_storage_print_data_delete(): unlink(\"%s\") %s",
|
||||
path, g_strerror (r));
|
||||
|
||||
Reference in New Issue
Block a user